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

Skip to content

Commit 68e72cf

Browse files
authored
gh-100239: fix bug in comparison (#132093)
1 parent 0a97427 commit 68e72cf

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