Browse Source

Fix a compilater warning on Windows 64-bit

idx variable is used for a tuple indexn so use Py_ssize_t (not int).
pull/224/head
Victor Stinner 13 years ago
parent
commit
d3dfd0e433
  1. 2
      Python/ceval.c

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

Loading…
Cancel
Save