From: Xuanteng Huang <44627253+xuantengh@users.noreply.github.com> Date: Sat, 15 Mar 2025 15:38:46 +0000 (+0800) Subject: gh-131281: fix compile error due to `BINARY_SUBSCR` (GH-131283) X-Git-Tag: v3.14.0a7~375 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1821f8f10c7a4a43a4fb55fe4e3da4cadfec699d;p=thirdparty%2FPython%2Fcpython.git gh-131281: fix compile error due to `BINARY_SUBSCR` (GH-131283) * fix compile error due to `BINARY_SUBSCR` * replace stat_inc with `BINARY_OP` --- diff --git a/Python/bytecodes.c b/Python/bytecodes.c index aaa25161d094..7af4d642edb9 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -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(); } diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index fb5b2240436f..ff9f33b6db01 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -1253,7 +1253,7 @@ 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; diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index 8cdbaf1a4d57..558b0b48ceaa 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -702,7 +702,7 @@ 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;