]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-130903: typo in optimizer DSL for _GUARD_BOTH_UNICODE (#130904)
authorJamie Phan <jamie@ordinarylab.dev>
Thu, 6 Mar 2025 11:11:08 +0000 (22:11 +1100)
committerGitHub <noreply@github.com>
Thu, 6 Mar 2025 11:11:08 +0000 (12:11 +0100)
Typo introduced in gh-118910.

Python/optimizer_bytecodes.c
Python/optimizer_cases.c.h

index 4bdef60dda9d53d7bc3d24b74c08260e5abdbfaa..ea7c39bd01ea07da5976175e7a02abf274f6865c 100644 (file)
@@ -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)) {
index 306599bea778779ba8c13647bca7106a686a8e28..9f3fc052494309edea06de450a2a68a5ce456899 100644 (file)
                 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;
         }