which made the return value signed. On the Alpha that also lost data
since sizeof(int) != sizeof(long) and apparently adler32/crc32 return
64 bits of data. This change keeps the signedness and continues to store the
data in a long rather than an int as was the case before r61449.
{
uLong adler32val = adler32(0L, Z_NULL, 0);
Byte *buf;
- int len, signed_val;
+ int len;
+ long signed_val;
if (!PyArg_ParseTuple(args, "s#|k:adler32", &buf, &len, &adler32val))
return NULL;
{
uLong crc32val = crc32(0L, Z_NULL, 0);
Byte *buf;
- int len, signed_val;
+ int len;
+ long signed_val;
if (!PyArg_ParseTuple(args, "s#|k:crc32", &buf, &len, &crc32val))
return NULL;