From 4bd8320dd7922d529eab51753dd524e8bf9c47b2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 10 Jul 2023 19:12:32 -0700 Subject: [PATCH] gh-106529: Silence compiler warning in jump target patching (#106613) (gh-106551 caused a compiler warning about on Windows.) --- Python/optimizer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/optimizer.c b/Python/optimizer.c index 48c29f55bee46b..08073193c0228f 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -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; }