commit | 9b374bfa0319f0d36cf021a5dd4af8d02caca93d | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Aug 02 18:22:30 2011 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Aug 02 18:22:30 2011 -0500 |
tree | d6e05ee72511e96d9a734e0302e2cea4733d4e35 | |
parent | 0163c9aa0cb0b3a6ada1bf351ee84375cc5dc9e8 [diff] [blame] |
comparing on number of cpus makes more sense
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 752fdf7..53833ad 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -4947,7 +4947,7 @@ 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; \