Allow using constant as size argument to data.fill
This commit is contained in:
parent
e15991af44
commit
3af135e1d9
|
@ -695,6 +695,8 @@ fn parse_data(pair: pest::iterators::Pair<Rule>) -> 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!()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user