Skip to content

Commit

Permalink
WORKAROUND: Add "noassert" option
Browse files Browse the repository at this point in the history
to allow skipping parent membership assertion. This addresses gap-system#3418
  • Loading branch information
hulpke committed Apr 26, 2019
1 parent c0f6457 commit 43065de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/grp.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,9 @@ local G,obj,close;
fi;

if close and not IsIdenticalObj( Parent( G ), obj ) then
Assert(2,IsSubset(Parent(G),obj));
if ValueOption("noassert")<>true then
Assert(2,IsSubset(Parent(G),obj));
fi;
SetParent( obj, Parent( G ) );
fi;
return obj;
Expand Down

0 comments on commit 43065de

Please sign in to comment.