From b5ff6a966bf67774c2edf6b8d7dd85bd63a2f826 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 8 May 2023 23:11:51 +0200 Subject: Fix variable expression calculation --- gerbonara/aperture_macros/expression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara/aperture_macros') 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): -- cgit