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/formula.spad.pamphlet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/algebra/formula.spad.pamphlet') diff --git a/src/algebra/formula.spad.pamphlet b/src/algebra/formula.spad.pamphlet index a39f786d..19011081 100644 --- a/src/algebra/formula.spad.pamphlet +++ b/src/algebra/formula.spad.pamphlet @@ -402,7 +402,7 @@ ScriptFormulaFormat(): public == private where str := stringify expr %integer?(expr)$Foreign(Builtin) => i := expr : Integer - if (i < 0) or (i > 9) then group str else str + if negative? i or (i > 9) then group str else str (i := position(str,specialStrings)) > 0 => specialStringsInFormula.i str -- cgit v1.2.3