Commit 7d54ad7e authored by Stefan Behnel's avatar Stefan Behnel

Silence a C compiler warning about a constant condition.

parent ef42aa43
......@@ -368,7 +368,7 @@ static PyObject *{{func_name}}(PyObject *left, PyObject *right {{extra_arg_decl}
}
if (maybe_self_is_left) {
PyObject *res;
if (maybe_self_is_right && !{{overloads_left}}) {
if (maybe_self_is_right && !({{overloads_left}})) {
res = {{call_right}};
if (res != Py_NotImplemented) return res;
Py_DECREF(res);
......@@ -379,7 +379,7 @@ static PyObject *{{func_name}}(PyObject *left, PyObject *right {{extra_arg_decl}
if (res != Py_NotImplemented) return res;
Py_DECREF(res);
}
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}})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment