Commits

Anonymous committed 4777c40

Fix unpack so it works on 64-bit platforms.

Comments (0)

Files changed (1)

Modules/_struct.c

 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));