summaryrefslogtreecommitdiff
path: root/gerbonara/aperture_macros/expression.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/aperture_macros/expression.py')
-rw-r--r--gerbonara/aperture_macros/expression.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gerbonara/aperture_macros/expression.py b/gerbonara/aperture_macros/expression.py
index af43d9a..ca8c15c 100644
--- a/gerbonara/aperture_macros/expression.py
+++ b/gerbonara/aperture_macros/expression.py
@@ -199,9 +199,9 @@ class OperatorExpression(Expression):
l = self.l.optimized(variable_binding)
r = self.r.optimized(variable_binding)
- if self.op in (operator.add, operator.mul):
- if id(r) < id(l):
- l, r = r, l
+ #if self.op in (operator.add, operator.mul):
+ # if id(r) < id(l):
+ # l, r = r, l
if isinstance(l, ConstantExpression) and isinstance(r, ConstantExpression):
return ConstantExpression(self.op(float(l), float(r)))