Add parens suggested by gcc -Wall.

This commit is contained in:
Guido van Rossum 2000-09-01 02:39:00 +00:00
parent c638791d53
commit 04127de434
1 changed files with 3 additions and 2 deletions

View File

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