Commit 951fba0c authored by Lisandro Dalcin's avatar Lisandro Dalcin

special case Py_None in __Pyx_PyObject_IsTrue()

parent 8f897fa4
...@@ -1399,6 +1399,7 @@ static INLINE Py_ssize_t __pyx_PyIndex_AsSsize_t(PyObject* b) { ...@@ -1399,6 +1399,7 @@ static INLINE Py_ssize_t __pyx_PyIndex_AsSsize_t(PyObject* b) {
static INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { static INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
if (x == Py_True) return 1; if (x == Py_True) return 1;
else if (x == Py_False) return 0; else if (x == Py_False) return 0;
else if (x == Py_None) return 0;
else return PyObject_IsTrue(x); else return PyObject_IsTrue(x);
} }
......
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