From 8f7bdd3208e071341a1493568023ef734b53016f Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 2 Aug 2011 18:34:30 -0500 Subject: [PATCH] I have been spoiled by chained comparisons in python --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 53833ad0b64..918ffb655c5 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; \ } \