[Python-checkins] cpython: Fix a compilater warning on Windows 64-bit

victor.stinner python-checkins at python.org
Fri May 17 00:06:34 CEST 2013


http://hg.python.org/cpython/rev/e5dc97fb304d
changeset:   83800:e5dc97fb304d
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Thu May 16 23:48:01 2013 +0200
summary:
  Fix a compilater warning on Windows 64-bit

idx variable is used for a tuple indexn so use Py_ssize_t (not int).

files:
  Python/ceval.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/ceval.c b/Python/ceval.c
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2256,7 +2256,7 @@
 
         TARGET(LOAD_CLASSDEREF) {
             PyObject *name, *value, *locals = f->f_locals;
-            int idx;
+            Py_ssize_t idx;
             assert(locals);
             assert(oparg >= PyTuple_GET_SIZE(co->co_cellvars));
             idx = oparg - PyTuple_GET_SIZE(co->co_cellvars);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list