[Python-3000-checkins] r61831 - python/branches/py3k/Modules/binascii.c

neal.norwitz python-3000-checkins at python.org
Mon Mar 24 05:59:06 CET 2008


Author: neal.norwitz
Date: Mon Mar 24 05:59:05 2008
New Revision: 61831

Modified:
   python/branches/py3k/Modules/binascii.c
Log:
Fix crash on 64-bit platforms

Modified: python/branches/py3k/Modules/binascii.c
==============================================================================
--- python/branches/py3k/Modules/binascii.c	(original)
+++ python/branches/py3k/Modules/binascii.c	Mon Mar 24 05:59:05 2008
@@ -786,7 +786,7 @@
 {
     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);


More information about the Python-3000-checkins mailing list