Mercurial > hg > index.cgi
comparison lwasm/output.c @ 531:a812bb4d3a51
Correct raw output target in lwasm to NUL pad RMBs
An incorrect test prevented lwasm from properly padding RMBs with NUL
bytes for the raw output target. This corrects that test so it now
works as expected. No more need to explicitly use ZMB.
author | William Astle <lost@l-w.ca> |
---|---|
date | Fri, 18 Mar 2022 16:58:40 -0600 |
parents | 733fd05ca2a8 |
children | a584b9ddffc4 |
comparison
equal
deleted
inserted
replaced
530:65c2085e0398 | 531:a812bb4d3a51 |
---|---|
250 { | 250 { |
251 line_t *cl; | 251 line_t *cl; |
252 | 252 |
253 for (cl = as -> line_head; cl; cl = cl -> next) | 253 for (cl = as -> line_head; cl; cl = cl -> next) |
254 { | 254 { |
255 if (cl -> len > 0 && cl -> outputl == 0) | 255 if (cl -> len > 0 && cl -> outputl < 0) |
256 { | 256 { |
257 int i; | 257 int i; |
258 for (i = 0; i < cl -> len; i++) | 258 for (i = 0; i < cl -> len; i++) |
259 writebytes("\0", 1, 1, of); | 259 writebytes("\0", 1, 1, of); |
260 continue; | 260 continue; |