Skip to content

Commit 56a3d5d

Browse files
committed
Fix IsNilpotentGroup: infinite does not imply "not p-group"
1 parent 22f1432 commit 56a3d5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/grp.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ InstallMethod( IsNilpotentGroup,
414414
elif s = 1 then
415415
SetIsPGroup( G, true );
416416
return true;
417-
else
417+
elif s <> infinity then
418418
SetIsPGroup( G, false );
419419
fi;
420420
TryNextMethod();

0 commit comments

Comments
 (0)