diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-06-24 21:31:48 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-06-24 21:31:48 (GMT) |
commit | 2199c387297d8c5b0e4c770bdc18e23cd5a5ec8b (patch) | |
tree | 88be7bb1b9e16c56ff4b72be5bf56b3b2ccd341b | |
parent | 2c72b51c446b85e967cdb650a49c5df1b1b08b23 (diff) | |
download | cpython-2199c387297d8c5b0e4c770bdc18e23cd5a5ec8b.zip cpython-2199c387297d8c5b0e4c770bdc18e23cd5a5ec8b.tar.gz cpython-2199c387297d8c5b0e4c770bdc18e23cd5a5ec8b.tar.bz2 |
Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64
-rw-r--r-- | Objects/tupleobject.c | 2 |
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) { |