https://github.com/python/cpython/commit/eebea7e515462b503632ada74923ec3246599c9c
commit: eebea7e515462b503632ada74923ec3246599c9c
branch: main
author: Kirill Podoprigora <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-03-24T20:34:55+02:00
summary:
gh-117176: Fix compiler warning in Python/optimizer_bytecodes.c (GH-117199)
files:
M Python/optimizer_bytecodes.c
M Python/optimizer_cases.c.h
diff --git a/Python/optimizer_bytecodes.c b/Python/optimizer_bytecodes.c
index e761b1b3433f04..e38428af108893 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 2908a26c20973e..6aeea51e62584f 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);
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]