cleanup
authorStefan Behnel <scoder@users.berlios.de>
Fri, 11 Dec 2009 13:26:21 +0000 (14:26 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 11 Dec 2009 13:26:21 +0000 (14:26 +0100)
Cython/Compiler/Nodes.py

index cd38b63d78c1cae94cbdfa8bb9b53e5703ddc984..e6b00487627784e71f92e67a22e311ad6272dfba 100644 (file)
@@ -3063,10 +3063,11 @@ class CascadedAssignmentNode(AssignmentNode):
     
     def analyse_types(self, env, use_temp = 0):
         self.rhs.analyse_types(env)
-        if use_temp and not self.rhs.is_simple():
-            self.rhs = self.rhs.coerce_to_temp(env)
-        else:
-            self.rhs = self.rhs.coerce_to_simple(env)
+        if not self.rhs.is_simple():
+            if use_temp:
+                self.rhs = self.rhs.coerce_to_temp(env)
+            else:
+                self.rhs = self.rhs.coerce_to_simple(env)
         from ExprNodes import CloneNode
         self.coerced_rhs_list = []
         for lhs in self.lhs_list: