]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
test_pickle works on sizeof(long)==8 boxes again.
authorTim Peters <tim.peters@gmail.com>
Tue, 10 Apr 2001 05:02:52 +0000 (05:02 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 10 Apr 2001 05:02:52 +0000 (05:02 +0000)
commit44714007e888acba27d8527122bf618c28a4120b
tree2d100e6115c29f4e73644aa8a5c769970719d7d9
parentd8ae7c2999b0362c098e57d64f49a710ce8238d0
test_pickle works on sizeof(long)==8 boxes again.
pickle.py
    The code implicitly assumed that all ints fit in 4 bytes, causing all
    sorts of mischief (from nonsense results to corrupted pickles).
    Repaired that.
marshal.c
    The int marshaling code assumed that right shifts of signed longs
    sign-extend.  Repaired that.
Lib/pickle.py
Python/marshal.c