summaryrefslogtreecommitdiff
path: root/gerbonara/aperture_macros/expression.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-30 01:26:21 +0200
committerjaseg <git@jaseg.de>2023-04-30 01:26:21 +0200
commitfda243315434f8cc4c21498a1dcb2c37ad39d268 (patch)
treec097ea9b3c50bc530821d6f2a2995f5b53af433c /gerbonara/aperture_macros/expression.py
parentf674f5d9af814bac3226202b1e911acc083118ca (diff)
downloadgerbonara-fda243315434f8cc4c21498a1dcb2c37ad39d268.tar.gz
gerbonara-fda243315434f8cc4c21498a1dcb2c37ad39d268.tar.bz2
gerbonara-fda243315434f8cc4c21498a1dcb2c37ad39d268.zip
Alio macros WIP
Diffstat (limited to 'gerbonara/aperture_macros/expression.py')
-rw-r--r--gerbonara/aperture_macros/expression.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/aperture_macros/expression.py b/gerbonara/aperture_macros/expression.py
index 44abf51..af43d9a 100644
--- a/gerbonara/aperture_macros/expression.py
+++ b/gerbonara/aperture_macros/expression.py
@@ -167,7 +167,7 @@ class VariableExpression(Expression):
def optimized(self, variable_binding={}):
if self.number in variable_binding:
- return ConstantExpression(variable_binding[self.number])
+ return ConstantExpression(expr(variable_binding[self.number]).optimized(variable_binding))
return self
def __eq__(self, other):