summaryrefslogtreecommitdiff
path: root/gerbonara
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-30 11:50:41 +0200
committerjaseg <git@jaseg.de>2023-04-30 11:50:41 +0200
commitaf7b04f510bd79be632e360e766e181a4b6986b8 (patch)
treef4d879c2f7811c8688e4581edd4a9098a7c189d0 /gerbonara
parentb50587d6ad8d345a561ac724f39e0fcea547cb5c (diff)
downloadgerbonara-af7b04f510bd79be632e360e766e181a4b6986b8.tar.gz
gerbonara-af7b04f510bd79be632e360e766e181a4b6986b8.tar.bz2
gerbonara-af7b04f510bd79be632e360e766e181a4b6986b8.zip
Remove broken aperture macro optimization
Diffstat (limited to 'gerbonara')
-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)))