summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-31 07:02:19 (GMT)
committerThomas Wouters <thomas@python.org>2000-08-31 07:02:19 (GMT)
commit6b958f7d7b28cacb4f4e653c6deb561fda18d099 (patch)
treee0a519fee1a0ef577451d99aaa8bd3ef5a16d490 /Objects
parent501b926da9ae96f1723480ef7bc67099a4e5018a (diff)
downloadcpython-6b958f7d7b28cacb4f4e653c6deb561fda18d099.zip
cpython-6b958f7d7b28cacb4f4e653c6deb561fda18d099.tar.gz
cpython-6b958f7d7b28cacb4f4e653c6deb561fda18d099.tar.bz2
Fix grouping: this is how I intended it, misguided as I was in boolean
operator associativity.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index e3492ec..fcd86ca 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -813,8 +813,8 @@ PyNumber_InPlaceAdd(PyObject *v, PyObject *w)
PyNumber_Add, 0) <= 0)
return x;
}
- else if ((HASINPLACE(v)
- && (v->ob_type->tp_as_sequence != NULL &&
+ else if (HASINPLACE(v)
+ && ((v->ob_type->tp_as_sequence != 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))