Skip to content

Commit c7e9919

Browse files
authored
gh-131798: Fix _ITER_CHECK_RANGE type in the JIT (#148607)
1 parent ca064d9 commit c7e9919

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Python/optimizer_bytecodes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,11 +1468,11 @@ dummy_func(void) {
14681468
}
14691469

14701470
op(_ITER_CHECK_RANGE, (iter, null_or_index -- iter, null_or_index)) {
1471-
if (sym_matches_type(iter, &PyRange_Type)) {
1471+
if (sym_matches_type(iter, &PyRangeIter_Type)) {
14721472
ADD_OP(_NOP, 0, 0);
14731473
}
14741474
else {
1475-
sym_set_type(iter, &PyRange_Type);
1475+
sym_set_type(iter, &PyRangeIter_Type);
14761476
}
14771477
}
14781478

Python/optimizer_cases.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)