https://github.com/python/cpython/commit/10cdd7f91ff45737e409a2e2c58fd8a9aa7c5a16
commit: 10cdd7f91ff45737e409a2e2c58fd8a9aa7c5a16
branch: main
author: Jamie Phan <[email protected]>
committer: vstinner <[email protected]>
date: 2025-03-06T12:11:08+01:00
summary:
GH-130903: typo in optimizer DSL for _GUARD_BOTH_UNICODE (#130904)
Typo introduced in gh-118910.
files:
M Python/optimizer_bytecodes.c
M Python/optimizer_cases.c.h
diff --git a/Python/optimizer_bytecodes.c b/Python/optimizer_bytecodes.c
index 4bdef60dda9d53..ea7c39bd01ea07 100644
--- a/Python/optimizer_bytecodes.c
+++ b/Python/optimizer_bytecodes.c
@@ -166,7 +166,7 @@ dummy_func(void) {
REPLACE_OP(this_instr, _NOP, 0 ,0);
}
sym_set_type(left, &PyUnicode_Type);
- sym_set_type(left, &PyUnicode_Type);
+ sym_set_type(right, &PyUnicode_Type);
}
op(_BINARY_OP, (left, right -- res)) {
diff --git a/Python/optimizer_cases.c.h b/Python/optimizer_cases.c.h
index 306599bea77877..9f3fc052494309 100644
--- a/Python/optimizer_cases.c.h
+++ b/Python/optimizer_cases.c.h
@@ -513,7 +513,7 @@
REPLACE_OP(this_instr, _NOP, 0 ,0);
}
sym_set_type(left, &PyUnicode_Type);
- sym_set_type(left, &PyUnicode_Type);
+ sym_set_type(right, &PyUnicode_Type);
break;
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]