projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2350ce9
)
cleanup
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 11 Dec 2009 13:26:21 +0000
(14:26 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 11 Dec 2009 13:26:21 +0000
(14:26 +0100)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index cd38b63d78c1cae94cbdfa8bb9b53e5703ddc984..e6b00487627784e71f92e67a22e311ad6272dfba 100644
(file)
--- a/
Cython/Compiler/Nodes.py
+++ b/
Cython/Compiler/Nodes.py
@@
-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: