summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-06-17 14:23:54 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-06-17 22:42:07 +0200
commit36468c2378fd01f434c6190d6957c15cb20d01c7 (patch)
treed63104a901d107145b9ae3b8f264089c8a8e890f
parentbc581d0310c817208dbe97a50f656033a78aabdc (diff)
downloadcython-36468c2378fd01f434c6190d6957c15cb20d01c7.tar.gz
Avoid a C compiler warning about a constant condition.
-rw-r--r--Cython/Utility/ExtensionTypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/ExtensionTypes.c b/Cython/Utility/ExtensionTypes.c
index f31cf16c9..857942094 100644
--- a/Cython/Utility/ExtensionTypes.c
+++ b/Cython/Utility/ExtensionTypes.c
@@ -347,7 +347,7 @@ static PyObject *{{func_name}}(PyObject *left, PyObject *right {{extra_arg_decl}
#endif
|| __Pyx_TypeCheck(left, {{type_cname}});
// Optimize for the common case where the left operation is defined (and successful).
- if (!{{overloads_left}}) {
+ if (!({{overloads_left}})) {
maybe_self_is_right = Py_TYPE(left) == Py_TYPE(right)
#if CYTHON_USE_TYPE_SLOTS
|| (Py_TYPE(right)->tp_as_number && Py_TYPE(right)->tp_as_number->{{slot_name}} == &{{func_name}})