From: Kirill Podoprigora Date: Sun, 24 Mar 2024 18:34:55 +0000 (+0200) Subject: gh-117176: Fix compiler warning in Python/optimizer_bytecodes.c (GH-117199) X-Git-Tag: v3.13.0a6~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eebea7e515462b503632ada74923ec3246599c9c;p=thirdparty%2FPython%2Fcpython.git gh-117176: Fix compiler warning in Python/optimizer_bytecodes.c (GH-117199) --- diff --git a/Python/optimizer_bytecodes.c b/Python/optimizer_bytecodes.c index e761b1b3433f..e38428af1088 100644 --- a/Python/optimizer_bytecodes.c +++ b/Python/optimizer_bytecodes.c @@ -545,7 +545,7 @@ dummy_func(void) { PyCodeObject *co = NULL; assert((this_instr + 2)->opcode == _PUSH_FRAME); - uintptr_t push_operand = (this_instr + 2)->operand; + uint64_t push_operand = (this_instr + 2)->operand; if (push_operand & 1) { co = (PyCodeObject *)(push_operand & ~1); DPRINTF(3, "code=%p ", co); diff --git a/Python/optimizer_cases.c.h b/Python/optimizer_cases.c.h index 2908a26c2097..6aeea51e6258 100644 --- a/Python/optimizer_cases.c.h +++ b/Python/optimizer_cases.c.h @@ -1598,7 +1598,7 @@ (void)callable; PyCodeObject *co = NULL; assert((this_instr + 2)->opcode == _PUSH_FRAME); - uintptr_t push_operand = (this_instr + 2)->operand; + uint64_t push_operand = (this_instr + 2)->operand; if (push_operand & 1) { co = (PyCodeObject *)(push_operand & ~1); DPRINTF(3, "code=%p ", co);