fix stupid crash
authorStefan Behnel <scoder@users.berlios.de>
Thu, 15 Apr 2010 13:24:36 +0000 (15:24 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 15 Apr 2010 13:24:36 +0000 (15:24 +0200)
Cython/Compiler/ExprNodes.py

index 4c16d1c05a1d9386b281f74a715a3ee3d187538f..9fb76af9bee170eb7aa35d07f536da00b3df21f5 100755 (executable)
@@ -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,