From: Stefan Behnel Date: Tue, 15 Sep 2009 09:12:31 +0000 (+0200) Subject: fix copy+paste bug X-Git-Tag: 0.12.alpha0~200 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5b76c0c5994b6a5af1536190e0ad8dbc8f88845e;p=cython.git fix copy+paste bug --- diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 4c301196..71b0eeda 100644 --- 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.operand1, ExprNodes.ConstNode): + not isinstance(node.operand2, 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.