diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-17 16:31:33 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-17 16:31:33 -0700 |
commit | 8f94f988f0413c35520095866e00ac358d36c99c (patch) | |
tree | 84df04291962d9a0fe17613967314a4ad6cd7f7a /parser.c | |
parent | 19315e012fda54ec3e4af65849170ab335dcc36f (diff) | |
download | nasm-8f94f988f0413c35520095866e00ac358d36c99c.tar.gz nasm-8f94f988f0413c35520095866e00ac358d36c99c.tar.bz2 nasm-8f94f988f0413c35520095866e00ac358d36c99c.zip |
Fix a few instances of missing renumbers
parser.c: change hard-coded argument count 3 to MAX_ARGUMENTS
assemble.c: change a few missed code renumbers
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -339,10 +339,10 @@ insn *parse_line(int pass, char *buffer, insn * result, return result; } - /* right. Now we begin to parse the operands. There may be up to three + /* right. Now we begin to parse the operands. There may be up to four * of these, separated by commas, and terminated by a zero token. */ - for (operand = 0; operand < 3; operand++) { + for (operand = 0; operand < MAX_OPERANDS; operand++) { expr *value; /* used most of the time */ int mref; /* is this going to be a memory ref? */ int bracket; /* is it a [] mref, or a & mref? */ |