[Python-checkins] cpython: Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64
victor.stinner
python-checkins at python.org
Mon Jun 24 23:33:40 CEST 2013
http://hg.python.org/cpython/rev/6b4d279508a3
changeset: 84325:6b4d279508a3
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Jun 24 23:31:48 2013 +0200
summary:
Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64
files:
Objects/tupleobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -997,7 +997,7 @@
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) {
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list