Kaydet (Commit) d3dfd0e4 authored tarafından Victor Stinner's avatar Victor Stinner

Fix a compilater warning on Windows 64-bit

idx variable is used for a tuple indexn so use Py_ssize_t (not int).
üst 3a8f510b
...@@ -2256,7 +2256,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) ...@@ -2256,7 +2256,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
TARGET(LOAD_CLASSDEREF) { TARGET(LOAD_CLASSDEREF) {
PyObject *name, *value, *locals = f->f_locals; PyObject *name, *value, *locals = f->f_locals;
int idx; Py_ssize_t idx;
assert(locals); assert(locals);
assert(oparg >= PyTuple_GET_SIZE(co->co_cellvars)); assert(oparg >= PyTuple_GET_SIZE(co->co_cellvars));
idx = oparg - PyTuple_GET_SIZE(co->co_cellvars); idx = oparg - PyTuple_GET_SIZE(co->co_cellvars);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment