mirror of
https://github.com/python/cpython
synced 2024-09-15 22:10:19 +00:00
Fix crash on 64-bit platforms
This commit is contained in:
parent
1dc5400939
commit
4027bf8794
|
@ -786,7 +786,7 @@ binascii_crc32(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
uLong crc32val = 0; /* crc32(0L, Z_NULL, 0) */
|
uLong crc32val = 0; /* crc32(0L, Z_NULL, 0) */
|
||||||
Byte *buf;
|
Byte *buf;
|
||||||
int len;
|
Py_ssize_t len;
|
||||||
if (!PyArg_ParseTuple(args, "s#|I:crc32", &buf, &len, &crc32val))
|
if (!PyArg_ParseTuple(args, "s#|I:crc32", &buf, &len, &crc32val))
|
||||||
return NULL;
|
return NULL;
|
||||||
crc32val = crc32(crc32val, buf, len);
|
crc32val = crc32(crc32val, buf, len);
|
||||||
|
|
Loading…
Reference in a new issue