commit | ef4364f3b8d45c713ca4aecf9329587ee0ed1bda | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Thu Apr 05 05:06:49 2007 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Thu Apr 05 05:06:49 2007 +0000 |
tree | 7d018e103ec945373de23a2b6a26b769aed79104 | |
parent | 9515c96cb0f9e6d089c229b3ce8ac4dafe49e4ad [diff] [blame] |
Fix unpack so it works on 64-bit platforms.
diff --git a/Modules/_struct.c b/Modules/_struct.c index 328acd9..53c6484 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c
@@ -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));