projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0765976
)
_Py_GetObjects(): GCC suggests to add () around && within || for some
author
Guido van Rossum
<guido@python.org>
Sat, 14 Jul 2001 17:58:00 +0000
(17:58 +0000)
committer
Guido 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
patch
|
blob
|
history
diff --git
a/Objects/object.c
b/Objects/object.c
index 680a7d49012ab9dbf06d99cf226564f71def6a8d..334907865764b8fd0c34c62e0167c68ddd25acc6 100644
(file)
--- a/
Objects/object.c
+++ b/
Objects/object.c
@@
-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;