]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-131281: fix compile error due to `BINARY_SUBSCR` (GH-131283)
authorXuanteng Huang <44627253+xuantengh@users.noreply.github.com>
Sat, 15 Mar 2025 15:38:46 +0000 (23:38 +0800)
committerGitHub <noreply@github.com>
Sat, 15 Mar 2025 15:38:46 +0000 (23:38 +0800)
* fix compile error due to `BINARY_SUBSCR`

* replace stat_inc with `BINARY_OP`

Python/bytecodes.c
Python/executor_cases.c.h
Python/generated_cases.c.h

index aaa25161d0943f5d047f27dd46ade631860e8ac3..7af4d642edb9197aa3bab5cb5f7f784cde6b910d 100644 (file)
@@ -878,7 +878,7 @@ dummy_func(
             assert(res_o != NULL);
             res = PyStackRef_FromPyObjectNew(res_o);
 #endif
-            STAT_INC(BINARY_SUBSCR, hit);
+            STAT_INC(BINARY_OP, hit);
             DECREF_INPUTS();
         }
 
index fb5b2240436f1ce850e08e6d956d29851acb2004..ff9f33b6db018777a2036039841c8ab85adcf5fb 100644 (file)
             assert(res_o != NULL);
             res = PyStackRef_FromPyObjectNew(res_o);
             #endif
-            STAT_INC(BINARY_SUBSCR, hit);
+            STAT_INC(BINARY_OP, hit);
             _PyFrame_SetStackPointer(frame, stack_pointer);
             _PyStackRef tmp = list_st;
             list_st = res;
index 8cdbaf1a4d5761a6912378d9a3cd3707b5d6f4c5..558b0b48ceaa71f8dbfc223d0943651f0f68e337 100644 (file)
             assert(res_o != NULL);
             res = PyStackRef_FromPyObjectNew(res_o);
             #endif
-            STAT_INC(BINARY_SUBSCR, hit);
+            STAT_INC(BINARY_OP, hit);
             _PyFrame_SetStackPointer(frame, stack_pointer);
             _PyStackRef tmp = list_st;
             list_st = res;