code cleanup
authorStefan Behnel <scoder@users.berlios.de>
Sat, 1 May 2010 16:10:42 +0000 (18:10 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 1 May 2010 16:10:42 +0000 (18:10 +0200)
Cython/Compiler/ExprNodes.py

index 169e93a55546b0a66113e341d446d1c4ee839f81..eb164973603bba1e176e769c589868251f9ed614 100755 (executable)
@@ -326,11 +326,8 @@ class ExprNode(Node):
         #  we ensure that all disposal has been done by the
         #  time we get the result.
         self.analyse_types(env)
-        bool = self.coerce_to_boolean(env)
-        if not bool.is_simple():
-            bool = bool.coerce_to_temp(env)
-        return bool
-    
+        return self.coerce_to_boolean(env).coerce_to_simple(env)
+
     # --------------- Type Inference -----------------
     
     def type_dependencies(self, env):