Skip to content

Commit f7c0739

Browse files
committed
Use _POP_TOP_UNICODE
1 parent f69803d commit f7c0739

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

Include/internal/pycore_opcode_metadata.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ dummy_func(
943943
}
944944

945945
macro(BINARY_OP_SUBSCR_STR_INT) =
946-
_GUARD_TOS_INT + _GUARD_NOS_COMPACT_ASCII + unused/5 + _BINARY_OP_SUBSCR_STR_INT + _POP_TOP_INT + POP_TOP;
946+
_GUARD_TOS_INT + _GUARD_NOS_COMPACT_ASCII + unused/5 + _BINARY_OP_SUBSCR_STR_INT + _POP_TOP_INT + _POP_TOP_UNICODE;
947947

948948
op(_BINARY_OP_SUBSCR_STR_INT, (str_st, sub_st -- res, s, i)) {
949949
PyObject *sub = PyStackRef_AsPyObjectBorrow(sub_st);
@@ -965,7 +965,7 @@ dummy_func(
965965
}
966966

967967
macro(BINARY_OP_SUBSCR_USTR_INT) =
968-
_GUARD_TOS_INT + _GUARD_NOS_UNICODE + unused/5 + _BINARY_OP_SUBSCR_USTR_INT + _POP_TOP_INT + POP_TOP;
968+
_GUARD_TOS_INT + _GUARD_NOS_UNICODE + unused/5 + _BINARY_OP_SUBSCR_USTR_INT + _POP_TOP_INT + _POP_TOP_UNICODE;
969969

970970
op(_BINARY_OP_SUBSCR_USTR_INT, (str_st, sub_st -- res, s, i)) {
971971
PyObject *sub = PyStackRef_AsPyObjectBorrow(sub_st);

Python/generated_cases.c.h

Lines changed: 12 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)