mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-19 11:51:33 +00:00
Handle disp parameter correctly
This commit is contained in:
@@ -2459,12 +2459,12 @@ gb_internal Ast *parse_asm_operand(AstFile *f, bool allow_memory_operand) {
|
||||
scale_op = f->prev_token;
|
||||
index = possible_index;
|
||||
scale = parse_asm_operand(f, false);
|
||||
if (allow_token(f, Token_Add)) {
|
||||
disp = parse_asm_operand(f, false);
|
||||
}
|
||||
} else {
|
||||
index = possible_index;
|
||||
}
|
||||
if (allow_token(f, Token_Add)) {
|
||||
disp = parse_asm_operand(f, false);
|
||||
}
|
||||
}
|
||||
|
||||
Token close = expect_token(f, Token_CloseBracket);
|
||||
|
||||
Reference in New Issue
Block a user