Skip to content

Commit

Permalink
pythongh-106529: Silence compiler warning in jump target patching (py…
Browse files Browse the repository at this point in the history
…thon#106613)

(pythongh-106551 caused a compiler warning about on Windows.)
  • Loading branch information
gvanrossum authored Jul 11, 2023
1 parent 115df84 commit 4bd8320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ translate_bytecode_to_trace(
if (trace[i].opcode == _POP_JUMP_IF_FALSE ||
trace[i].opcode == _POP_JUMP_IF_TRUE)
{
int target = trace[i].operand;
if (target >= max_length) {
uint64_t target = trace[i].operand;
if (target >= (uint64_t)max_length) {
target += trace_length - max_length;
trace[i].operand = target;
}
Expand Down

0 comments on commit 4bd8320

Please sign in to comment.