Fix unpack so it works on 64-bit platforms.

This commit is contained in:
Neal Norwitz 2007-04-05 05:06:49 +00:00
parent 9515c96cb0
commit ef4364f3b8
1 changed files with 1 additions and 1 deletions

View File

@ -1486,7 +1486,7 @@ static PyObject *
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));