]> granicus.if.org Git - python/commitdiff
Fix grouping: this is how I intended it, misguided as I was in boolean
authorThomas Wouters <thomas@python.org>
Thu, 31 Aug 2000 07:02:19 +0000 (07:02 +0000)
committerThomas Wouters <thomas@python.org>
Thu, 31 Aug 2000 07:02:19 +0000 (07:02 +0000)
operator associativity.

Objects/abstract.c

index e3492ec06f6f618f406cfd30f16a8578808e6ec6..fcd86caca97bce26beba379a7731fc44e3266ca0 100644 (file)
@@ -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))