]> granicus.if.org Git - python/commit
Use Py_ssize_t in _PyEval_EvalCodeWithName()
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 16 Aug 2016 21:39:42 +0000 (23:39 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 16 Aug 2016 21:39:42 +0000 (23:39 +0200)
commit17061a99b03dc101e7ab7a20ab23411f077b3efe
tree7d25f1002c1c4b1117de41bf7ce171df4d6bd42f
parentc70200165c4199e50201148d5971798342a86b5a
Use Py_ssize_t in _PyEval_EvalCodeWithName()

Issue #27128, #18295: replace int type with Py_ssize_t for index variables used
for positional arguments. It should help to avoid integer overflow and help to
emit better machine code for "i++" (no trap needed for overflow).

Make also the total_args variable constant.
Python/ceval.c