Commit 5b76c0c5 authored by Stefan Behnel's avatar Stefan Behnel

fix copy+paste bug

parent e610feed
...@@ -1008,7 +1008,7 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations): ...@@ -1008,7 +1008,7 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
# constant node to prevent any loss of precision. # constant node to prevent any loss of precision.
return node return node
if not isinstance(node.operand1, ExprNodes.ConstNode) or \ 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 # We calculate other constants to make them available to
# the compiler, but we only aggregate constant nodes # the compiler, but we only aggregate constant nodes
# recursively, so non-const nodes are straight out. # recursively, so non-const nodes are straight out.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment