Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d3dfd0e

Browse files
committed
Fix a compilater warning on Windows 64-bit
idx variable is used for a tuple indexn so use Py_ssize_t (not int).
1 parent 3a8f510 commit d3dfd0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2256,7 +2256,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
22562256

22572257
TARGET(LOAD_CLASSDEREF) {
22582258
PyObject *name, *value, *locals = f->f_locals;
2259-
int idx;
2259+
Py_ssize_t idx;
22602260
assert(locals);
22612261
assert(oparg >= PyTuple_GET_SIZE(co->co_cellvars));
22622262
idx = oparg - PyTuple_GET_SIZE(co->co_cellvars);

0 commit comments

Comments
 (0)