summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-04-05 05:06:49 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2007-04-05 05:06:49 +0000
commitef4364f3b8d45c713ca4aecf9329587ee0ed1bda (patch)
tree7d018e103ec945373de23a2b6a26b769aed79104
parent9515c96cb0f9e6d089c229b3ce8ac4dafe49e4ad (diff)
downloadcpython-git-ef4364f3b8d45c713ca4aecf9329587ee0ed1bda.tar.gz
Fix unpack so it works on 64-bit platforms.v2.5.1c1
-rw-r--r--Modules/_struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index 328acd9e46..53c64848b1 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -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));