From 52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 12 Mar 2011 17:04:43 +0000 Subject: * src/algebra/: Systematically use negative? when comparing for less than 0. --- src/algebra/twofact.spad.pamphlet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/algebra/twofact.spad.pamphlet') 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] -- cgit v1.2.3