]> granicus.if.org Git - python/commit
Force zlib.crc32 and zlib.adler32 to return a signed integer on all platforms
authorGregory P. Smith <greg@mad-scientist.com>
Mon, 17 Mar 2008 18:48:05 +0000 (18:48 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Mon, 17 Mar 2008 18:48:05 +0000 (18:48 +0000)
commitf48f9d38c02ef914194eeeeb6cdae770e218af00
tree66b91bf167ab2d565d9da953376e038b3380796b
parent33451d8ab143fb89374673d3aa751910c5b1031e
Force zlib.crc32 and zlib.adler32 to return a signed integer on all platforms
regardless of the native sizeof(long) used in the integer object.

This somewhat odd behavior of returning a signed is maintained in 2.x for
compatibility reasons of always returning an integer rather than a long object.

Fixes Issue1202 for Python 2.6
Doc/library/zlib.rst
Lib/test/test_zlib.py
Misc/NEWS
Modules/zlibmodule.c