Commit d1746a7c authored by Neal Norwitz's avatar Neal Norwitz

Fix crash on 64-bit platforms

parent 2e866411
......@@ -786,7 +786,7 @@ binascii_crc32(PyObject *self, PyObject *args)
{
uLong crc32val = 0; /* crc32(0L, Z_NULL, 0) */
Byte *buf;
int len;
Py_ssize_t len;
if (!PyArg_ParseTuple(args, "s#|I:crc32", &buf, &len, &crc32val))
return NULL;
crc32val = crc32(crc32val, buf, len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment