persistent 4.0.9 hashes on 32-bit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ZODB |
New
|
Undecided
|
Unassigned |
Bug Description
The latest release of persistent, 4.0.9, fails some of its tests on 32-bit systems:
=======
FAIL: test_hash_equal (persistent.
-------
Traceback (most recent call last):
File "/builddir/
self.
AssertionError: -1419374591 != 1979033151
=======
FAIL: test_hash_
-------
Traceback (most recent call last):
File "/builddir/
self.
AssertionError: -721379967 != 1000006000001L
-------
This is because timestamp hash codes are the same size as a C long, but the code assumes they are 64 bits in some places. The attached patch fixes the issue.