Unverified Commit 21a09873 authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #2127 from peastman/groups

Fixed bug in Python wrapper
parents 5387707d f3437eec
......@@ -49,7 +49,7 @@
((1<<x) & 0xffffffff for x in groups))
else:
raise TypeError('%s is neither an int nor set' % groups)
if groups_mask > 0x80000000:
if groups_mask >= 0x80000000:
groups_mask -= 0x100000000
types = 0
if getPositions:
......@@ -160,7 +160,7 @@ Parameters:
((1<<x) & 0xffffffff for x in groups))
else:
raise TypeError('%s is neither an int nor set' % groups)
if groups_mask > 0x80000000:
if groups_mask >= 0x80000000:
groups_mask -= 0x100000000
types = 0
if getPositions:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment