summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-02 23:34:30 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-02 23:34:30 (GMT)
commit8f7bdd3208e071341a1493568023ef734b53016f (patch)
treecdd33e8812d314cf61f7181612b88f1921e7bfcc
parent9b374bfa0319f0d36cf021a5dd4af8d02caca93d (diff)
downloadcpython-8f7bdd3208e071341a1493568023ef734b53016f.zip
cpython-8f7bdd3208e071341a1493568023ef734b53016f.tar.gz
cpython-8f7bdd3208e071341a1493568023ef734b53016f.tar.bz2
I have been spoiled by chained comparisons in python
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 53833ad..918ffb6 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4952,7 +4952,7 @@ cpu_set_richcompare(Py_cpu_set *set, Py_cpu_set *other, int op)
Py_INCREF(Py_NotImplemented); \
return Py_NotImplemented; \
} \
- assert(left->size == right->size == res->size); \
+ assert(left->size == right->size && right->size == res->size); \
op(res->size, res->set, left->set, right->set); \
return (PyObject *)res; \
} \