commit | d3dfd0e433241de76d4f3f4dba4d8ef59f09e61d | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Thu May 16 23:48:01 2013 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Thu May 16 23:48:01 2013 +0200 |
tree | 2b6473564dd3c3a825871f17d4d20ab768170b80 | |
parent | 3a8f510b52b5287b2cba2b720f657073b8ffc719 [diff] [blame] |
Fix a compilater warning on Windows 64-bit idx variable is used for a tuple indexn so use Py_ssize_t (not int).
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 @@ 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);