From: Stefan Behnel Date: Thu, 15 Apr 2010 13:24:36 +0000 (+0200) Subject: fix stupid crash X-Git-Tag: 0.13.beta0~202 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2b4aa4cc8d1ed3e6370e60b01afd030a5d710ec8;p=cython.git fix stupid crash --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 4c16d1c0..9fb76af9 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -6136,7 +6136,7 @@ class CoerceToBooleanNode(CoercionNode): return test_func = self._special_builtins.get(self.arg.type) if test_func is not None: - code.putln("%s = (%s != Py_None) & (%s(%s) != 0);" % ( + code.putln("%s = (%s != Py_None) && (%s(%s) != 0);" % ( self.result(), self.arg.py_result(), test_func,