]> granicus.if.org Git - python/commitdiff
comparing on number of cpus makes more sense
authorBenjamin Peterson <benjamin@python.org>
Tue, 2 Aug 2011 23:22:30 +0000 (18:22 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 2 Aug 2011 23:22:30 +0000 (18:22 -0500)
Modules/posixmodule.c

index 752fdf7f98cd1047aaad05af7a676df0185eff91..53833ad0b64d410cb93d1846955e2cef1afd2129 100644 (file)
@@ -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; \