]> granicus.if.org Git - python/commitdiff
Fix crash on 64-bit platforms
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 24 Mar 2008 04:59:05 +0000 (04:59 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 24 Mar 2008 04:59:05 +0000 (04:59 +0000)
Modules/binascii.c

index 034dc01c13ec302dd60aec2ebee3143086629704..5ed20d5ad0e1ec0e62a833a79f847b3c27b7bba7 100644 (file)
@@ -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);