Commits

Anonymous committed 4777c40

Fix unpack so it works on 64-bit platforms.

  • Participants
  • Parent commits 28aec13
  • Branches 2.5
  • Tags v2.5.1c1

Comments (0)

Files changed (1)

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