summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-05-16 21:48:01 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-05-16 21:48:01 (GMT)
commitd3dfd0e433241de76d4f3f4dba4d8ef59f09e61d (patch)
tree2b6473564dd3c3a825871f17d4d20ab768170b80
parent3a8f510b52b5287b2cba2b720f657073b8ffc719 (diff)
downloadcpython-d3dfd0e433241de76d4f3f4dba4d8ef59f09e61d.zip
cpython-d3dfd0e433241de76d4f3f4dba4d8ef59f09e61d.tar.gz
cpython-d3dfd0e433241de76d4f3f4dba4d8ef59f09e61d.tar.bz2
Fix a compilater warning on Windows 64-bit
idx variable is used for a tuple indexn so use Py_ssize_t (not int).
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 60a71f9..e184ef6 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);