Skip to content

Commit 60d376e

Browse files
committed
Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64
1 parent ecc55e1 commit 60d376e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/tupleobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ tupleiter_reduce(tupleiterobject *it)
997997
static PyObject *
998998
tupleiter_setstate(tupleiterobject *it, PyObject *state)
999999
{
1000-
long index = PyLong_AsLong(state);
1000+
Py_ssize_t index = PyLong_AsLong(state);
10011001
if (index == -1 && PyErr_Occurred())
10021002
return NULL;
10031003
if (it->it_seq != NULL) {

0 commit comments

Comments
 (0)