Fix a compilater warning on Windows 64-bit

idx variable is used for a tuple indexn so use Py_ssize_t (not int).
This commit is contained in:
Victor Stinner 2013-05-16 23:48:01 +02:00
parent 3a8f510b52
commit d3dfd0e433
1 changed files with 1 additions and 1 deletions

View 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);