Skip to content

Commit

Permalink
Make sure we cast MAX32 to an int, as 2**31 would be automaticall…
Browse files Browse the repository at this point in the history
…y overflow to a long on 32bit Python's.
  • Loading branch information
hannosch committed Aug 5, 2010
1 parent 4b6145d commit 88f1404
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Changelog
=========

1.1.2 - unreleased
1.1.2 - 2010-08-05
------------------

- Make sure we cast MAX32 to an int, as ``2**31`` would be automatically
overflow to a long on 32bit Python's.

1.1.1 - 2010-08-04
------------------
Expand Down
2 changes: 1 addition & 1 deletion Products/ZopeVersionControl/EventLog.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from Utility import _findUserId
import time

MAX32 = 2**31 - 1
MAX32 = int(2**31 - 1)


class EventLog(Persistent):
Expand Down
2 changes: 1 addition & 1 deletion Products/ZopeVersionControl/VersionHistory.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from Acquisition import Implicit
import time

MAX32 = 2**31 - 1
MAX32 = int(2**31 - 1)


class VersionHistory(Implicit, Persistent):
Expand Down

0 comments on commit 88f1404

Please sign in to comment.