Skip to content

Commit

Permalink
fix a mutability inconsistency of ExtRepOfObj values (#5802)
Browse files Browse the repository at this point in the history
of objects in `IsLetterAssocWordRep`
  • Loading branch information
ThomasBreuer committed Sep 20, 2024
1 parent 1ea61c7 commit 5c79e69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/wordlett.gi
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ local i,r,elm,len,g,h,e;
Add(r,e);

LETTER_WORD_EREP_CACHE[LETTER_WORD_EREP_CACHEPOS]:=w;
LETTER_WORD_EREP_CACHEVAL[LETTER_WORD_EREP_CACHEPOS]:=Immutable(r);
LETTER_WORD_EREP_CACHEVAL[LETTER_WORD_EREP_CACHEPOS]:=MakeImmutable(r);
LETTER_WORD_EREP_CACHEPOS:=(LETTER_WORD_EREP_CACHEPOS mod 3)+1;
return r;
end);
Expand Down
9 changes: 8 additions & 1 deletion tst/testinstall/wordrep.tst
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,11 @@ gap> e1=e2;
true

#
gap> STOP_TEST("wordrep.tst", 1);
gap> f:= FreeGroup(IsLetterWordsFamily,4);;
gap> IsMutable(ExtRepOfObj(f.1));
false
gap> IsMutable(ExtRepOfObj(f.1));
false

#
gap> STOP_TEST("wordrep.tst");

0 comments on commit 5c79e69

Please sign in to comment.