_Py_GetObjects(): GCC suggests to add () around && within || for some
authorGuido van Rossum <guido@python.org>
Sat, 14 Jul 2001 17:58:00 +0000 (17:58 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 14 Jul 2001 17:58:00 +0000 (17:58 +0000)
code only compiled in debug mode, and I dutifully comply.

Objects/object.c

index 680a7d49012ab9dbf06d99cf226564f71def6a8d..334907865764b8fd0c34c62e0167c68ddd25acc6 100644 (file)
@@ -1410,7 +1410,7 @@ _Py_GetObjects(PyObject *self, PyObject *args)
                return NULL;
        for (i = 0; (n == 0 || i < n) && op != &refchain; i++) {
                while (op == self || op == args || op == res || op == t ||
-                      t != NULL && op->ob_type != (PyTypeObject *) t) {
+                      (t != NULL && op->ob_type != (PyTypeObject *) t)) {
                        op = op->_ob_next;
                        if (op == &refchain)
                                return res;