summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));