aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/ffpoly2.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/ffpoly2.spad.pamphlet')
-rw-r--r--src/algebra/ffpoly2.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/ffpoly2.spad.pamphlet b/src/algebra/ffpoly2.spad.pamphlet
index 76c5780f..b4f6b767 100644
--- a/src/algebra/ffpoly2.spad.pamphlet
+++ b/src/algebra/ffpoly2.spad.pamphlet
@@ -108,7 +108,7 @@ FiniteFieldPolynomialPackage2(F,GF):Exports == Implementation where
h:=gcd(stillToFactor,trModp +$(SUP F) _
(index(j pretend PI)$GF::F::(SUP F)))$(SUP F)
-- make the gcd polynomial monic
- if leadingCoefficient(h)$(SUP F) ~= 1$F then
+ if not one? leadingCoefficient(h)$(SUP F) then
h:= (inv leadingCoefficient(h)) * h
degh:=degree(h)$(SUP F)
degSTF:=degree(stillToFactor)$(SUP F)