Skip to content

Commit 524a701

Browse files
authored
pythongh-111386: Fix uint32_t cast in generated_cases.c.h (python#111387)
1 parent aa73245 commit 524a701

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2686,7 +2686,7 @@ dummy_func(
26862686
assert(next_instr[oparg].op.code == END_FOR ||
26872687
next_instr[oparg].op.code == INSTRUMENTED_END_FOR);
26882688
assert(1 + INLINE_CACHE_ENTRIES_FOR_ITER == next_instr - frame->instr_ptr);
2689-
frame->return_offset = 1 + INLINE_CACHE_ENTRIES_FOR_ITER + oparg;
2689+
frame->return_offset = (uint16_t)(1 + INLINE_CACHE_ENTRIES_FOR_ITER + oparg);
26902690
DISPATCH_INLINED(gen_frame);
26912691
}
26922692

Python/generated_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)