From 9b374bfa0319f0d36cf021a5dd4af8d02caca93d Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 2 Aug 2011 18:22:30 -0500 Subject: [PATCH] comparing on number of cpus makes more sense --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 752fdf7f98c..53833ad0b64 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -4947,7 +4947,7 @@ cpu_set_richcompare(Py_cpu_set *set, Py_cpu_set *other, int op) if (!res) \ return NULL; \ } \ - if (Py_TYPE(right) != &cpu_set_type || left->size != right->size) { \ + if (Py_TYPE(right) != &cpu_set_type || left->ncpus != right->ncpus) { \ Py_DECREF(res); \ Py_INCREF(Py_NotImplemented); \ return Py_NotImplemented; \