gh-106529: Silence compiler warning in jump target patching (#106613)

(gh-106551 caused a compiler warning about on Windows.)
This commit is contained in:
Guido van Rossum 2023-07-10 19:12:32 -07:00 committed by GitHub
parent 115df8491a
commit 4bd8320dd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}