Skip to content

Commit

Permalink
fixed type assertion (funny)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBreuer committed Jan 21, 2024
1 parent 44bf0af commit 68a19c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Serialization/GAP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ install_GAP_serialization(:IsFreeGroup,
save_object(s, wfilt, :wfilt)
# rank and names of generators
Xnames = GAP.getbangproperty(elfam, :names)::GapObj
if length(Xnames) == GAP.Globals.infinity
if GAP.Globals.Length(Xnames)::GAP.Obj == GAP.Globals.infinity
# store the initial names and the prefix
prefix = GAP.getbangindex(Xnames, 1)::GapObj
save_object(s, string(prefix), :nameprefix)
Expand Down Expand Up @@ -240,12 +240,12 @@ install_GAP_serialization(:IsPcGroup,
function(X::GapObj, s::SerializerState)
elfam = GAPWrap.ElementsFamily(GAPWrap.FamilyObj(X))
fullpcgs = GAP.getbangproperty(elfam, :DefiningPcgs)::GapObj
if GAP.Globals.IsIdenticalObj(fullpcgs, GAPWrap.Pcgs(X)::GapObj)
if GAP.Globals.IsIdenticalObj(fullpcgs, GAPWrap.Pcgs(X))
# full pc group: Save the defining data.
save_data_dict(s) do
save_object(s, "IsPcGroup", :GapType)
# relative orders
relord = [GAP.Globals.RelativeOrderOfPcElement(fullpcgs, x)::GapObj
relord = [GAP.Globals.RelativeOrderOfPcElement(fullpcgs, x)::GAP.Obj
for x in fullpcgs]
save_object(s, relord, :relord)
# power relators
Expand Down

0 comments on commit 68a19c2

Please sign in to comment.