1 parent ecc55e1 commit 60d376eCopy full SHA for 60d376e
1 file changed
Objects/tupleobject.c
@@ -997,7 +997,7 @@ tupleiter_reduce(tupleiterobject *it)
997
static PyObject *
998
tupleiter_setstate(tupleiterobject *it, PyObject *state)
999
{
1000
- long index = PyLong_AsLong(state);
+ Py_ssize_t index = PyLong_AsLong(state);
1001
if (index == -1 && PyErr_Occurred())
1002
return NULL;
1003
if (it->it_seq != NULL) {
0 commit comments