summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-01 02:39:00 (GMT)
committerGuido van Rossum <guido@python.org>2000-09-01 02:39:00 (GMT)
commit04127de434cb04dce332da41aaeca6ea0d508a32 (patch)
tree7fd7bb15aa11c4c2432e90aec95b442484f68389 /Objects/abstract.c
parentc638791d53c7a2f72f8b934a7e7b1513f12aaa4e (diff)
downloadcpython-04127de434cb04dce332da41aaeca6ea0d508a32.zip
cpython-04127de434cb04dce332da41aaeca6ea0d508a32.tar.gz
cpython-04127de434cb04dce332da41aaeca6ea0d508a32.tar.bz2
Add parens suggested by gcc -Wall.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index fcd86ca..abfaa5e 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -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);