Kaydet (Commit) b1d70e22 authored tarafından Facundo Batista's avatar Facundo Batista

Coerced PyBool_Type to be able to compare it.

üst 39df6617
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment