mirror of
https://github.com/python/cpython.git
synced 2025-08-24 02:35:59 +00:00
Fixes loop variables to be the same types as their limit (GH-120958)
This commit is contained in:
parent
2e157851e3
commit
e731554337
14 changed files with 26 additions and 26 deletions
|
@ -2095,7 +2095,7 @@ remove_unused_consts(basicblock *entryblock, PyObject *consts)
|
|||
/* now index_map[i] == i if consts[i] is used, -1 otherwise */
|
||||
/* condense consts */
|
||||
Py_ssize_t n_used_consts = 0;
|
||||
for (int i = 0; i < nconsts; i++) {
|
||||
for (Py_ssize_t i = 0; i < nconsts; i++) {
|
||||
if (index_map[i] != -1) {
|
||||
assert(index_map[i] == i);
|
||||
index_map[n_used_consts++] = index_map[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue