mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
Fix missing test for e->type being set.
This commit is contained in:
parent
157d3097bb
commit
1fd2fa70b0
3
parser.c
3
parser.c
@ -574,7 +574,8 @@ insn *parse_line (int pass, char *buffer, insn *result,
|
||||
result->oprs[operand].hintbase = hints.base;
|
||||
result->oprs[operand].hinttype = hints.type;
|
||||
|
||||
if (e->type <= EXPR_REG_END) { /* this bit's a register */
|
||||
if (e->type && e->type <= EXPR_REG_END) /* this bit's a register */
|
||||
{
|
||||
if (e->value == 1) /* in fact it can be basereg */
|
||||
b = e->type;
|
||||
else /* no, it has to be indexreg */
|
||||
|
Loading…
Reference in New Issue
Block a user