From fda243315434f8cc4c21498a1dcb2c37ad39d268 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 30 Apr 2023 01:26:21 +0200 Subject: Alio macros WIP --- gerbonara/aperture_macros/expression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara/aperture_macros/expression.py') 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): -- cgit