From: Victor Stinner Date: Thu, 16 May 2013 21:48:01 +0000 (+0200) Subject: Fix a compilater warning on Windows 64-bit X-Git-Tag: v3.4.0a1~712 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3dfd0e433241de76d4f3f4dba4d8ef59f09e61d;p=thirdparty%2FPython%2Fcpython.git Fix a compilater warning on Windows 64-bit idx variable is used for a tuple indexn so use Py_ssize_t (not int). --- diff --git a/Python/ceval.c b/Python/ceval.c index 60a71f96bf5d..e184ef6a4b89 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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);