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:
Cyrill Gorcunov 2016-11-28 23:57:08 +03:00
parent 7294d62040
commit fd610f27d6

View File

@ -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 */