[issue1202] zlib.crc32() and adler32() return value
Michael Becker
report at bugs.python.org
Mon Mar 24 15:58:56 CET 2008
Michael Becker <spammb at gmail.com> added the comment:
In case it isn't obvious the work around for pre 3.0 to get the right
sum is something like:
x=zlib.adler32(str)
if x < 0:
x=(long(x) + 4294967296L) # 2^32, long may or may not be needed here
----------
nosy: +mbecker
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1202>
__________________________________
More information about the Python-bugs-list
mailing list