From f9c66648a46bb735c5d3b19ea7d50a0cbfc62a18 Mon Sep 17 00:00:00 2001 From: Johannes Schmitt Date: Wed, 18 Sep 2024 16:12:03 +0200 Subject: [PATCH] Fix gcd --- src/Poly.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Poly.jl b/src/Poly.jl index 2bacc1643f..3ff9e15870 100644 --- a/src/Poly.jl +++ b/src/Poly.jl @@ -1886,8 +1886,8 @@ function gcd(a::PolyRingElem{T}, b::PolyRingElem{T}, ignore_content::Bool = fals end end b = divexact(b, content(b)) + b = c*b end - b = c*b return divexact(b, canonical_unit(leading_coefficient(b))) end