From 5b76c0c5994b6a5af1536190e0ad8dbc8f88845e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 15 Sep 2009 11:12:31 +0200 Subject: [PATCH] fix copy+paste bug --- Cython/Compiler/Optimize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.26.2