]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
backport tim_one's checkin of
authorMichael W. Hudson <mwh@python.net>
Wed, 25 Sep 2002 10:22:50 +0000 (10:22 +0000)
committerMichael W. Hudson <mwh@python.net>
Wed, 25 Sep 2002 10:22:50 +0000 (10:22 +0000)
commitf5cdacfa91067594de16028e057eace3e8c30040
tree781f5e3053dc8ca63acce65613cca0f09135590d
parent74f1f76ef194cf3a722c56c46f73f16194b497d4
backport tim_one's checkin of
    revision 2.35 of binascii.c

Fix for SF bug #576327: zipfile when sizeof(long) == 8
binascii_crc32():  Make this return a signed 4-byte result across
platforms.  The other way to make this platform-independent would be to
make it return an unsigned unbounded int, but the evidence suggests
other code out there treats it like a signed 4-byte int (e.g., existing
code writing the result with struct.pack "l" format).

Bugfix candidate.
Modules/binascii.c