projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c951d4e
)
code cleanup
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 1 May 2010 16:10:42 +0000
(18:10 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 1 May 2010 16:10:42 +0000
(18:10 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index 169e93a55546b0a66113e341d446d1c4ee839f81..eb164973603bba1e176e769c589868251f9ed614 100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-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):