diff Modules/_struct.c @ 41389:4777c4007b5b 2.5 v2.5.1c1

Fix unpack so it works on 64-bit platforms.
author Neal Norwitz <nnorwitz@gmail.com>
date Thu, 05 Apr 2007 05:06:49 +0000
parents 812027f1eea5
children 8cbe0bd93c28
line wrap: on
line diff
--- a/Modules/_struct.c	Thu Apr 05 04:52:06 2007 +0000
+++ b/Modules/_struct.c	Thu Apr 05 05:06:49 2007 +0000
@@ -1486,7 +1486,7 @@
 s_unpack(PyObject *self, PyObject *inputstr)
 {
 	char *start;
-	int len;
+	Py_ssize_t len;
 	PyObject *args=NULL, *result;
 	PyStructObject *soself = (PyStructObject *)self;
 	assert(PyStruct_Check(self));