From 71b1b370927b8696794927a670520919944a645d Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 18 Oct 2008 01:17:39 +0000 Subject: Fix AW/374 * algebra/radix.spad.pamphlet (intgroup$RadixExpansion): Check for big radix. --- src/ChangeLog | 6 ++++++ src/algebra/radix.spad.pamphlet | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2525ae03..5521c226 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2008-10-17 Waldek Hebisch + + Fix AW/374 + * algebra/radix.spad.pamphlet (intgroup$RadixExpansion): Check for + big radix. + 2008-10-17 Alfredo Portes Fix AW/293 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] -- cgit v1.2.3