From 8cda398879121c3b593e5e3fac4d348594cf674b Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Mon, 15 Mar 2010 11:51:11 -0300 Subject: [PATCH] trivial fix: | -> || --- Cython/Compiler/PyrexTypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 08649240..afbca581 100755 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -2490,7 +2490,7 @@ type_conversion_functions = """ static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { if (x == Py_True) return 1; - else if ((x == Py_False) | (x == Py_None)) return 0; + else if ((x == Py_False) || (x == Py_None)) return 0; else return PyObject_IsTrue(x); } -- 2.26.2