fix compiler crash
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 21 Apr 2013 05:57:10 +0000 (07:57 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 21 Apr 2013 05:57:10 +0000 (07:57 +0200)
Cython/Compiler/ExprNodes.py

index 7e2b105..95faae5 100755 (executable)
@@ -750,6 +750,7 @@ class ExprNode(Node):
             return CoerceToBooleanNode(self, env)
         else:
             error(self.pos, "Type '%s' not acceptable as a boolean" % type)
+            return self
 
     def coerce_to_integer(self, env):
         # If not already some C integer type, coerce to longint.