summaryrefslogtreecommitdiffstats
path: root/Objects/tupleobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-06-24 21:31:48 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-06-24 21:31:48 (GMT)
commit2199c387297d8c5b0e4c770bdc18e23cd5a5ec8b (patch)
tree88be7bb1b9e16c56ff4b72be5bf56b3b2ccd341b /Objects/tupleobject.c
parent2c72b51c446b85e967cdb650a49c5df1b1b08b23 (diff)
downloadcpython-2199c387297d8c5b0e4c770bdc18e23cd5a5ec8b.zip
cpython-2199c387297d8c5b0e4c770bdc18e23cd5a5ec8b.tar.gz
cpython-2199c387297d8c5b0e4c770bdc18e23cd5a5ec8b.tar.bz2
Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r--Objects/tupleobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index d808e08..de43ee4 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -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) {