aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/twofact.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/twofact.spad.pamphlet')
-rw-r--r--src/algebra/twofact.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/twofact.spad.pamphlet b/src/algebra/twofact.spad.pamphlet
index 667dbd5d..eb0bad93 100644
--- a/src/algebra/twofact.spad.pamphlet
+++ b/src/algebra/twofact.spad.pamphlet
@@ -188,7 +188,7 @@ TwoFactorize(F) : C == T
sqfrm:=squareFree m
for u in factors sqfrm repeat
expo:=u.exponent
- if expo < 0 then error "negative exponent in a factorisation"
+ if negative? expo then error "negative exponent in a factorisation"
expon:NonNegativeInteger:=expo::NonNegativeInteger
fac:=u.factor
degree fac = 1 => ll:=[["irred",fac,expon],:ll]