]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-117176: Fix compiler warning in Python/optimizer_bytecodes.c (GH-117199)
authorKirill Podoprigora <kirill.bast9@mail.ru>
Sun, 24 Mar 2024 18:34:55 +0000 (20:34 +0200)
committerGitHub <noreply@github.com>
Sun, 24 Mar 2024 18:34:55 +0000 (20:34 +0200)
Python/optimizer_bytecodes.c
Python/optimizer_cases.c.h

index e761b1b3433f045277ebc4278bbdee6510b4061e..e38428af108893e492e1256cf087a0834fa67ba1 100644 (file)
@@ -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);
index 2908a26c20973e64cb77d45108a8804b431dcd4d..6aeea51e62584fd9dd366f71162f44ab865978f0 100644 (file)
             (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);