diff options
author | Guido van Rossum <guido@python.org> | 2023-07-11 02:12:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 02:12:32 (GMT) |
commit | 4bd8320dd7922d529eab51753dd524e8bf9c47b2 (patch) | |
tree | 4332985c57411f62c4d71a9aede60b3721af7444 /Python/optimizer.c | |
parent | 115df8491a6633ced3cc3f2343b349869de30b8c (diff) | |
download | cpython-4bd8320dd7922d529eab51753dd524e8bf9c47b2.zip cpython-4bd8320dd7922d529eab51753dd524e8bf9c47b2.tar.gz cpython-4bd8320dd7922d529eab51753dd524e8bf9c47b2.tar.bz2 |
gh-106529: Silence compiler warning in jump target patching (#106613)
(gh-106551 caused a compiler warning about on Windows.)
Diffstat (limited to 'Python/optimizer.c')
-rw-r--r-- | Python/optimizer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/optimizer.c b/Python/optimizer.c index 48c29f5..0807319 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; } |