mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
asm/parser.c -- Fix typo in testing for register
It should be EXPR_REG_END referred when testing
for register present.
A typo in 472a7c1d17
https://bugzilla.nasm.us/show_bug.cgi?id=3392375
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
7294d62040
commit
fd610f27d6
@ -390,7 +390,7 @@ static int value_to_extop(expr * vect, extop *eop, int32_t myseg)
|
||||
if (!vect->value) /* zero term, safe to ignore */
|
||||
continue;
|
||||
|
||||
if (vect->type < EXPR_SIMPLE) /* false if a register is present */
|
||||
if (vect->type <= EXPR_REG_END) /* false if a register is present */
|
||||
return -1;
|
||||
|
||||
if (vect->type == EXPR_UNKNOWN) /* something we can't resolve yet */
|
||||
|
Loading…
Reference in New Issue
Block a user