]> granicus.if.org Git - python/commitdiff
Removed compiler warning about wanting explicit grouping around &&
authorFred Drake <fdrake@acm.org>
Thu, 31 Aug 2000 05:15:44 +0000 (05:15 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 31 Aug 2000 05:15:44 +0000 (05:15 +0000)
expression next to a || expression; this is a readability-inspired
warning from GCC.

Objects/abstract.c

index 03049152aac72e51ebdf92a8db8973f4278b01dc..e3492ec06f6f618f406cfd30f16a8578808e6ec6 100644 (file)
@@ -812,10 +812,12 @@ PyNumber_InPlaceAdd(PyObject *v, PyObject *w)
                if (PyInstance_HalfBinOp(v, w, "__iadd__", &x,
                                        PyNumber_Add, 0) <= 0)
                        return x;
-       } 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))
+       }
+       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))
                return (*f)(v, w);
 
        BINOP(v, w, "__add__", "__radd__", PyNumber_Add);