projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e610fee
)
fix copy+paste bug
author
Stefan Behnel
<scoder@users.berlios.de>
Tue, 15 Sep 2009 09:12:31 +0000
(11:12 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Tue, 15 Sep 2009 09:12:31 +0000
(11:12 +0200)
Cython/Compiler/Optimize.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Optimize.py
b/Cython/Compiler/Optimize.py
index 4c30119632bb014c96990efe8cd76e262353dbc4..71b0eeda4910637e28f62ca67cf178f80fe3c3d4 100644
(file)
--- a/
Cython/Compiler/Optimize.py
+++ b/
Cython/Compiler/Optimize.py
@@
-1008,7
+1008,7
@@
class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
# constant node to prevent any loss of precision.
return node
if not isinstance(node.operand1, ExprNodes.ConstNode) or \
- not isinstance(node.operand
1
, ExprNodes.ConstNode):
+ not isinstance(node.operand
2
, ExprNodes.ConstNode):
# We calculate other constants to make them available to
# the compiler, but we only aggregate constant nodes
# recursively, so non-const nodes are straight out.