Commit 04127de4 authored by Guido van Rossum's avatar Guido van Rossum

Add parens suggested by gcc -Wall.

parent c638791d
...@@ -813,9 +813,10 @@ PyNumber_InPlaceAdd(PyObject *v, PyObject *w) ...@@ -813,9 +813,10 @@ PyNumber_InPlaceAdd(PyObject *v, PyObject *w)
PyNumber_Add, 0) <= 0) PyNumber_Add, 0) <= 0)
return x; return x;
} }
else if (HASINPLACE(v) else if ((HASINPLACE(v)
&& ((v->ob_type->tp_as_sequence != NULL && && ((v->ob_type->tp_as_sequence != NULL &&
(f = v->ob_type->tp_as_sequence->sq_inplace_concat) != NULL)) (f = v->ob_type->tp_as_sequence->sq_inplace_concat)
!= NULL)))
|| (v->ob_type->tp_as_number != NULL && || (v->ob_type->tp_as_number != NULL &&
(f = v->ob_type->tp_as_number->nb_inplace_add) != NULL)) (f = v->ob_type->tp_as_number->nb_inplace_add) != NULL))
return (*f)(v, w); return (*f)(v, w);
......
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