diff options
author | Facundo Batista <facundobatista@gmail.com> | 2008-02-25 23:46:02 +0000 |
---|---|---|
committer | Facundo Batista <facundobatista@gmail.com> | 2008-02-25 23:46:02 +0000 |
commit | 7f7bcc7cd0e8123373830e81e010ed007a6b4194 (patch) | |
tree | 795bbc4d50e1f62822d77e2171bfdcc276daa341 /Modules/itertoolsmodule.c | |
parent | 7767409946bd818378edefb939a691399d987602 (diff) | |
download | cpython-7f7bcc7cd0e8123373830e81e010ed007a6b4194.tar.gz |
Coerced PyBool_Type to be able to compare it.
Diffstat (limited to 'Modules/itertoolsmodule.c')
-rw-r--r-- | Modules/itertoolsmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index e53c35347e..d95376a581 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -2055,7 +2055,7 @@ ifilter_next(ifilterobject *lz) if (item == NULL) return NULL; - if (lz->func == Py_None || lz->func == PyBool_Type) { + if (lz->func == Py_None || lz->func == (PyObject *)&PyBool_Type) { ok = PyObject_IsTrue(item); } else { PyObject *good; @@ -2199,7 +2199,7 @@ ifilterfalse_next(ifilterfalseobject *lz) if (item == NULL) return NULL; - if (lz->func == Py_None || lz->func == PyBool_Type) { + if (lz->func == Py_None || lz->func == (PyObject *)&PyBool_Type) { ok = PyObject_IsTrue(item); } else { PyObject *good; |