diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-03-07 21:54:31 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-03-07 21:54:31 -0800 |
commit | e5a352516c36707b54c41077a768ebe9ae1fd534 (patch) | |
tree | 42e8f28590f6572fe10e46ba0a6757b7ea0ee9ee | |
parent | 1fb908c0dbf5bdde4d4aaaf78b48b6520d52de4c (diff) | |
download | nasm-e5a352516c36707b54c41077a768ebe9ae1fd534.tar.gz |
BR 2672117: handle long lines for db/dw/etc.
Handle long arrays on a single line in db/dw/etc.
-rw-r--r-- | nasm.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -1495,20 +1495,20 @@ static void assemble_file(char *fname, StrList **depend_ptr) && forwref->lineno == globallineno); } else output_ins.forw_ref = false; - } - - if (optimizing > 0) { - if (passn == 1) { - for (i = 0; i < output_ins.operands; i++) { - if (output_ins.oprs[i]. - opflags & OPFLAG_FORWARD) { - struct forwrefinfo *fwinf = - (struct forwrefinfo *) - saa_wstruct(forwrefs); - fwinf->lineno = globallineno; + + if (output_ins.forw_ref) { + if (passn == 1) { + for (i = 0; i < output_ins.operands; i++) { + if (output_ins.oprs[i]. + opflags & OPFLAG_FORWARD) { + struct forwrefinfo *fwinf = + (struct forwrefinfo *) + saa_wstruct(forwrefs); + fwinf->lineno = globallineno; fwinf->operand = i; - } - } + } + } + } } } |