Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64
This commit is contained in:
parent
2c72b51c44
commit
2199c38729
|
@ -997,7 +997,7 @@ tupleiter_reduce(tupleiterobject *it)
|
||||||
static PyObject *
|
static PyObject *
|
||||||
tupleiter_setstate(tupleiterobject *it, PyObject *state)
|
tupleiter_setstate(tupleiterobject *it, PyObject *state)
|
||||||
{
|
{
|
||||||
long index = PyLong_AsLong(state);
|
Py_ssize_t index = PyLong_AsLong(state);
|
||||||
if (index == -1 && PyErr_Occurred())
|
if (index == -1 && PyErr_Occurred())
|
||||||
return NULL;
|
return NULL;
|
||||||
if (it->it_seq != NULL) {
|
if (it->it_seq != NULL) {
|
||||||
|
|
Loading…
Reference in New Issue