[Python-checkins] r54693 - python/branches/release25-maint/Modules/_struct.c

neal.norwitz python-checkins at python.org
Thu Apr 5 07:06:51 CEST 2007


Author: neal.norwitz
Date: Thu Apr  5 07:06:49 2007
New Revision: 54693

Modified:
   python/branches/release25-maint/Modules/_struct.c
Log:
Fix unpack so it works on 64-bit platforms.

Modified: python/branches/release25-maint/Modules/_struct.c
==============================================================================
--- python/branches/release25-maint/Modules/_struct.c	(original)
+++ python/branches/release25-maint/Modules/_struct.c	Thu Apr  5 07:06:49 2007
@@ -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));


More information about the Python-checkins mailing list