From: Victor Stinner Date: Mon, 24 Jun 2013 21:31:48 +0000 (+0200) Subject: Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64 X-Git-Tag: v3.4.0a1~398 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2199c387297d8c5b0e4c770bdc18e23cd5a5ec8b;p=thirdparty%2FPython%2Fcpython.git Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64 --- diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index d808e08aa149..de43ee4bdf69 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) {