From 3d4551c96816f2ab03f7f26746ff7bea672ef23d Mon Sep 17 00:00:00 2001 From: dos-reis Date: Wed, 21 May 2008 09:19:42 +0000 Subject: Fix AW/343 * algebra/free.spad.pamphlet (<$FreeAbelianGroup): Fix ordering. --- src/ChangeLog | 5 +++++ src/algebra/free.spad.pamphlet | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index bef613d9..81fb283a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-05-21 Martin Rubey + + Fix AW/343 + * algebra/free.spad.pamphlet (<$FreeAbelianGroup): Fix ordering. + 2008-05-19 Gabriel Dos Reis * boot/ast.boot: Cleanup. diff --git a/src/algebra/free.spad.pamphlet b/src/algebra/free.spad.pamphlet index 9dbf0ea5..19bf701c 100644 --- a/src/algebra/free.spad.pamphlet +++ b/src/algebra/free.spad.pamphlet @@ -542,8 +542,8 @@ FreeAbelianGroup(S:SetCategory): Exports == Implementation where zero? b => ta.exp < 0 ta := inmax terms a tb := inmax terms b - ta.gen < tb.gen => true - ta.gen > tb.gen => false + ta.gen < tb.gen => tb.exp > 0 + ta.gen > tb.gen => ta.exp < 0 ta.exp < tb.exp => true ta.exp > tb.exp => false lc := ta.exp * ta.gen -- cgit v1.2.3