Fix unpack so it works on 64-bit platforms.
This commit is contained in:
parent
9515c96cb0
commit
ef4364f3b8
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue