summaryrefslogtreecommitdiff
path: root/gerbonara/aperture_macros
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-05-08 23:11:51 +0200
committerjaseg <git@jaseg.de>2023-05-08 23:11:51 +0200
commitb5ff6a966bf67774c2edf6b8d7dd85bd63a2f826 (patch)
treeff4096f927b6d779285dde155a249bb62fb980f7 /gerbonara/aperture_macros
parentb1e189eed23e85c089de0e8507fc3ea81cc79324 (diff)
downloadgerbonara-b5ff6a966bf67774c2edf6b8d7dd85bd63a2f826.tar.gz
gerbonara-b5ff6a966bf67774c2edf6b8d7dd85bd63a2f826.tar.bz2
gerbonara-b5ff6a966bf67774c2edf6b8d7dd85bd63a2f826.zip
Fix variable expression calculationdev
Diffstat (limited to 'gerbonara/aperture_macros')
-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 ca8c15c..99d02eb 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(expr(variable_binding[self.number]).optimized(variable_binding))
+ return expr(variable_binding[self.number]).optimized(variable_binding)
return self
def __eq__(self, other):