]> granicus.if.org Git - python/commit
Fix for SF bug #576327: zipfile when sizeof(long) == 8
authorTim Peters <tim.peters@gmail.com>
Tue, 2 Jul 2002 20:20:08 +0000 (20:20 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 2 Jul 2002 20:20:08 +0000 (20:20 +0000)
commita98011c388bea7ac0d8f0ed4b3b712aea0e5739f
treec1758d32038b95c2e88c389b86bd08c879306783
parentfbd79944a8ed747048d20cacea4d6df2b8f930ef
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