summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-03-24 04:59:05 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-03-24 04:59:05 (GMT)
commit4027bf87942a34eee912c2cbbc185f5b60e6a0ff (patch)
treed9574b6cdc6a006902600e6c770ab090de2fd9c1 /Modules
parent1dc54009391974ecc6d18f202be05a230a92ca60 (diff)
downloadcpython-4027bf87942a34eee912c2cbbc185f5b60e6a0ff.zip
cpython-4027bf87942a34eee912c2cbbc185f5b60e6a0ff.tar.gz
cpython-4027bf87942a34eee912c2cbbc185f5b60e6a0ff.tar.bz2
Fix crash on 64-bit platforms
Diffstat (limited to 'Modules')
-rw-r--r--Modules/binascii.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c
index 034dc01..5ed20d5 100644
--- a/Modules/binascii.c
+++ b/Modules/binascii.c
@@ -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);