From: Neal Norwitz Date: Mon, 24 Mar 2008 04:59:05 +0000 (+0000) Subject: Fix crash on 64-bit platforms X-Git-Tag: v3.0a4~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4027bf87942a34eee912c2cbbc185f5b60e6a0ff;p=thirdparty%2FPython%2Fcpython.git Fix crash on 64-bit platforms --- diff --git a/Modules/binascii.c b/Modules/binascii.c index 034dc01c13ec..5ed20d5ad0e1 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);