From: Benjamin Peterson Date: Tue, 2 Aug 2011 23:22:30 +0000 (-0500) Subject: comparing on number of cpus makes more sense X-Git-Tag: v3.3.0a1~1766 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b374bfa0319f0d36cf021a5dd4af8d02caca93d;p=thirdparty%2FPython%2Fcpython.git comparing on number of cpus makes more sense --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 752fdf7f98cd..53833ad0b64d 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; \