8000 gh-100239: fix bug in comparison (#132093) · seehwan/cpython@cc96de2 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc96de2

Browse files
iritkatrielseehwan80
authored andcommitted
pythongh-100239: fix bug in comparison (python#132093)
1 parent de6fa4f commit cc96de2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/specialize.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2382,11 +2382,11 @@ binary_op_fail_kind(int oparg, PyObject *lhs, PyObject *rhs)
23822382
return SPEC_FAIL_BINARY_OP_SUBSCR_DEQUE;
23832383
}
23842384

2385-
if (strcmp(_PyType_Name(container_type), "EnumDict") != 0) {
2385+
if (strcmp(_PyType_Name(container_type), "EnumDict") == 0) {
23862386
return SPEC_FAIL_BINARY_OP_SUBSCR_ENUMDICT;
23872387
}
23882388

2389-
if (strcmp(container_type->tp_name, "StackSummary") != 0) {
2389+
if (strcmp(container_type->tp_name, "StackSummary") == 0) {
23902390
return SPEC_FAIL_BINARY_OP_SUBSCR_STACKSUMMARY;
23912391
}
23922392

0 commit comments

Comments
 (0)
0