From 3af135e1d9e2d7778db4b9c9b05095c577c032cd Mon Sep 17 00:00:00 2001 From: mebibytedraco <139500397+mebibytedraco@users.noreply.github.com> Date: Thu, 22 Feb 2024 13:25:03 -0500 Subject: [PATCH] Allow using constant as size argument to data.fill --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index c71b222..79f4d45 100644 --- a/src/main.rs +++ b/src/main.rs @@ -695,6 +695,8 @@ fn parse_data(pair: pest::iterators::Pair) -> AstNode { let ast = parse_operand(pair.into_inner().nth(1).unwrap(), false); if let AstNode::Immediate32(word) = ast { word + } else if let AstNode::Constant {name: _, address} = ast { + address } else { unreachable!() }