Skip to content

Commit 6c7861c

Browse files
Fix rhs and lhs
1 parent 37ccb18 commit 6c7861c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Python/optimizer_bytecodes.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ dummy_func(void) {
208208
res = sym_new_type(ctx, &PyFloat_Type);
209209
}
210210

211-
if (sym_is_const(ctx, left) && sym_is_const(ctx, right)) {
212-
PyObject *temp = PyObject_RichCompare(sym_get_const(ctx, left),
213-
sym_get_const(ctx, right),
211+
if (sym_is_const(ctx, lhs) && sym_is_const(ctx, rhs)) {
212+
PyObject *temp = PyObject_RichCompare(sym_get_const(ctx, lhs),
213+
sym_get_const(ctx, rhs),
214214
oparg >> 5);
215215
if (temp == NULL) {
216216
goto error;

Python/optimizer_cases.c.h

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

0 commit comments

Comments
 (0)