aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/radix.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-10-18 01:17:39 +0000
committerdos-reis <gdr@axiomatics.org>2008-10-18 01:17:39 +0000
commit71b1b370927b8696794927a670520919944a645d (patch)
treec2f083fdc3ba5b34535239e534fd97a05073cf3d /src/algebra/radix.spad.pamphlet
parent6e4fb4c2b8cc5f867eceb3bc39572fe218bb5d13 (diff)
downloadopen-axiom-71b1b370927b8696794927a670520919944a645d.tar.gz
Fix AW/374
* algebra/radix.spad.pamphlet (intgroup$RadixExpansion): Check for big radix.
Diffstat (limited to 'src/algebra/radix.spad.pamphlet')
-rw-r--r--src/algebra/radix.spad.pamphlet4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/algebra/radix.spad.pamphlet b/src/algebra/radix.spad.pamphlet
index 7cee785e..5ae58510 100644
--- a/src/algebra/radix.spad.pamphlet
+++ b/src/algebra/radix.spad.pamphlet
@@ -174,7 +174,9 @@ RadixExpansion(bb): Exports == Implementation where
intgroup(li: List I): OUT ==
empty? li => error "intgroup needs non-null list"
- empty? rest li => intToExpr first(li)
+ empty? rest li =>
+ abs bb <= 36 intToExpr first(li)
+ first(li)::OUT
abs bb <= 10 => hconcat [i :: OUT for i in li]
abs bb <= 36 => hconcat [intToExpr(i) for i in li]
blankSeparate [i :: OUT for i in li]