Remove broken aperture macro optimization
This commit is contained in:
parent
b50587d6ad
commit
af7b04f510
1 changed files with 3 additions and 3 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue