]> granicus.if.org Git - python/commitdiff
Fix a compilater warning on Windows 64-bit
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 16 May 2013 21:48:01 +0000 (23:48 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 16 May 2013 21:48:01 +0000 (23:48 +0200)
idx variable is used for a tuple indexn so use Py_ssize_t (not int).

Python/ceval.c

index 60a71f96bf5d59d202d9c9744440f8fb90c65e48..e184ef6a4b899966eeb94478534b2aa089069765 100644 (file)
@@ -2256,7 +2256,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
 
         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);