]> granicus.if.org Git - python/commitdiff
make_new_cpu_set takes the number of cpus
authorBenjamin Peterson <benjamin@python.org>
Tue, 2 Aug 2011 22:44:26 +0000 (17:44 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 2 Aug 2011 22:44:26 +0000 (17:44 -0500)
Modules/posixmodule.c

index bb13f47d5632c31d2597aabcb532461380338b1f..d4ba9cf8c196c875f253cbca132e00ca09a4aaff 100644 (file)
@@ -4923,7 +4923,7 @@ cpu_set_richcompare(Py_cpu_set *set, Py_cpu_set *other, int op)
             Py_INCREF(res); \
         } \
         else { \
-            res = make_new_cpu_set(&cpu_set_type, left->size); \
+            res = make_new_cpu_set(&cpu_set_type, left->ncpus); \
             if (!res) \
                 return NULL; \
         } \