From: Guido van Rossum Date: Tue, 11 Jul 2023 02:12:32 +0000 (-0700) Subject: gh-106529: Silence compiler warning in jump target patching (#106613) X-Git-Tag: v3.13.0a1~1446 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bd8320dd7922d529eab51753dd524e8bf9c47b2;p=thirdparty%2FPython%2Fcpython.git gh-106529: Silence compiler warning in jump target patching (#106613) (gh-106551 caused a compiler warning about on Windows.) --- diff --git a/Python/optimizer.c b/Python/optimizer.c index 48c29f55bee4..08073193c022 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -548,8 +548,8 @@ done: 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; }