From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Fri, 4 Apr 2025 17:09:49 +0000 (+0100) Subject: gh-100239: fix bug in comparison (#132093) X-Git-Tag: v3.14.0a7~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68e72cf3a80362d0a2d57ff0c9f02553c378e537;p=thirdparty%2FPython%2Fcpython.git gh-100239: fix bug in comparison (#132093) --- diff --git a/Python/specialize.c b/Python/specialize.c index e7924aa711ef..f73f322f0c97 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -2382,11 +2382,11 @@ binary_op_fail_kind(int oparg, PyObject *lhs, PyObject *rhs) return SPEC_FAIL_BINARY_OP_SUBSCR_DEQUE; } - if (strcmp(_PyType_Name(container_type), "EnumDict") != 0) { + if (strcmp(_PyType_Name(container_type), "EnumDict") == 0) { return SPEC_FAIL_BINARY_OP_SUBSCR_ENUMDICT; } - if (strcmp(container_type->tp_name, "StackSummary") != 0) { + if (strcmp(container_type->tp_name, "StackSummary") == 0) { return SPEC_FAIL_BINARY_OP_SUBSCR_STACKSUMMARY; }