diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-08-02 23:22:30 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-08-02 23:22:30 (GMT) |
commit | 9b374bfa0319f0d36cf021a5dd4af8d02caca93d (patch) | |
tree | d6e05ee72511e96d9a734e0302e2cea4733d4e35 | |
parent | 0163c9aa0cb0b3a6ada1bf351ee84375cc5dc9e8 (diff) | |
download | cpython-9b374bfa0319f0d36cf021a5dd4af8d02caca93d.zip cpython-9b374bfa0319f0d36cf021a5dd4af8d02caca93d.tar.gz cpython-9b374bfa0319f0d36cf021a5dd4af8d02caca93d.tar.bz2 |
comparing on number of cpus makes more sense
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; \ |