Skip to content

Commit

Permalink
fix lower bound of signed int (see ros/genpy#102) (ros#1781)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas authored Oct 15, 2019
1 parent 6b1ee1a commit 5da095d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_rospy/test/unit/test_genmsg_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def test_std_msgs_SignedInt(self):
widths = [(8, Int8), (16, Int16), (32, Int32), (64, Int64)]
for w, cls in widths:
maxp = long(math.pow(2, w-1)) - 1
maxn = -long(math.pow(2, w-1)) + 1
maxn = -long(math.pow(2, w-1))
self._test_ser_deser(cls(maxp), cls())
self._test_ser_deser(cls(maxn), cls())
try:
Expand Down

0 comments on commit 5da095d

Please sign in to comment.