Coerced PyBool_Type to be able to compare it.

This commit is contained in:
Facundo Batista 2008-02-25 23:46:02 +00:00
parent 39df66179f
commit b1d70e2252
1 changed files with 2 additions and 2 deletions

View File

@ -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;