changeset: 84325:6b4d279508a3 user: Victor Stinner date: Mon Jun 24 23:31:48 2013 +0200 files: Objects/tupleobject.c description: Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64 diff -r 262689e0fa2a -r 6b4d279508a3 Objects/tupleobject.c --- a/Objects/tupleobject.c Mon Jun 24 14:23:35 2013 -0700 +++ b/Objects/tupleobject.c Mon Jun 24 23:31:48 2013 +0200 @@ -997,7 +997,7 @@ static PyObject * tupleiter_setstate(tupleiterobject *it, PyObject *state) { - long index = PyLong_AsLong(state); + Py_ssize_t index = PyLong_AsLong(state); if (index == -1 && PyErr_Occurred()) return NULL; if (it->it_seq != NULL) {