Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Silence compiler warning in jump target patching
  • Loading branch information
gvanrossum committed Jul 11, 2023
commit c950c335f2e6c1dfbe4a5048119cb34c4f81a8be
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