From fd610f27d6814b321b2d4420d23cf43664abcaf0 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Mon, 28 Nov 2016 23:57:08 +0300 Subject: [PATCH] asm/parser.c -- Fix typo in testing for register It should be EXPR_REG_END referred when testing for register present. A typo in 472a7c1d17e0212b3cbf5302a9f5cdb358be4425 https://bugzilla.nasm.us/show_bug.cgi?id=3392375 Signed-off-by: Cyrill Gorcunov --- asm/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm/parser.c b/asm/parser.c index a20ef943..7b4cc5cb 100644 --- a/asm/parser.c +++ b/asm/parser.c @@ -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 */