Skip to content

Commit 4bd8320

Browse files
authored
gh-106529: Silence compiler warning in jump target patching (#106613)
(gh-106551 caused a compiler warning about on Windows.)
1 parent 115df84 commit 4bd8320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/optimizer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ translate_bytecode_to_trace(
548548
if (trace[i].opcode == _POP_JUMP_IF_FALSE ||
549549
trace[i].opcode == _POP_JUMP_IF_TRUE)
550550
{
551-
int target = trace[i].operand;
552-
if (target >= max_length) {
551+
uint64_t target = trace[i].operand;
552+
if (target >= (uint64_t)max_length) {
553553
target += trace_length - max_length;
554554
trace[i].operand = target;
555555
}

0 commit comments

Comments
 (0)