summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2024-03-24 18:34:55 (GMT)
committerGitHub <noreply@github.com>2024-03-24 18:34:55 (GMT)
commiteebea7e515462b503632ada74923ec3246599c9c (patch)
treea17e7a5fc71960932429c1a79673a48ef6a800e7 /Python
parent83485a095363dad6c97b19af2826ca0c34343bfc (diff)
downloadcpython-eebea7e515462b503632ada74923ec3246599c9c.zip
cpython-eebea7e515462b503632ada74923ec3246599c9c.tar.gz
cpython-eebea7e515462b503632ada74923ec3246599c9c.tar.bz2
gh-117176: Fix compiler warning in Python/optimizer_bytecodes.c (GH-117199)
Diffstat (limited to 'Python')
-rw-r--r--Python/optimizer_bytecodes.c2
-rw-r--r--Python/optimizer_cases.c.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Python/optimizer_bytecodes.c b/Python/optimizer_bytecodes.c
index e761b1b..e38428a 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 2908a26..6aeea51 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);