Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64

This commit is contained in:
Victor Stinner 2013-06-24 23:31:48 +02:00
parent 2c72b51c44
commit 2199c38729
1 changed files with 1 additions and 1 deletions

View File

@ -997,7 +997,7 @@ tupleiter_reduce(tupleiterobject *it)
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) {