Force zlib.crc32 and zlib.adler32 to return a signed integer on all platforms
commitdf5e32ae15518cca64e063ae103d7484856c4dce
authorgregory.p.smith <gregory.p.smith@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 17 Mar 2008 18:48:05 +0000 (17 18:48 +0000)
committergregory.p.smith <gregory.p.smith@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 17 Mar 2008 18:48:05 +0000 (17 18:48 +0000)
tree8659aa392ec4b08a89e05c6a3dee9fa163ee1902
parent90665164e477945b94a4f0218adf653723b5d459
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

git-svn-id: http://svn.python.org/projects/python/trunk@61449 6015fed2-1504-0410-9fe1-9d1591cc4771
Doc/library/zlib.rst
Lib/test/test_zlib.py
Misc/NEWS
Modules/zlibmodule.c