Commit 0a8a04af authored by Stefan Behnel's avatar Stefan Behnel

clarify parentheses to fix C compiler warning

parent cbec2d11
...@@ -9531,8 +9531,8 @@ class _YieldDelegationExprNode(YieldExprNode): ...@@ -9531,8 +9531,8 @@ class _YieldDelegationExprNode(YieldExprNode):
def handle_iteration_exception(self, code): def handle_iteration_exception(self, code):
code.putln("PyObject* exc_type = PyErr_Occurred();") code.putln("PyObject* exc_type = PyErr_Occurred();")
code.putln("if (exc_type) {") code.putln("if (exc_type) {")
code.putln("if (likely(exc_type == PyExc_StopIteration || exc_type != PyExc_GeneratorExit &&" code.putln("if (likely(exc_type == PyExc_StopIteration || (exc_type != PyExc_GeneratorExit &&"
" __Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();") " __Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))) PyErr_Clear();")
code.putln("else %s" % code.error_goto(self.pos)) code.putln("else %s" % code.error_goto(self.pos))
code.putln("}") code.putln("}")
......
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