changeset 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 65c2085e0398
children b8e9ac01deda
files lwasm/output.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/output.c	Wed Mar 09 15:56:03 2022 -0700
+++ b/lwasm/output.c	Fri Mar 18 16:58:40 2022 -0600
@@ -252,7 +252,7 @@
 	
 	for (cl = as -> line_head; cl; cl = cl -> next)
 	{
-		if (cl -> len > 0 && cl -> outputl == 0)
+		if (cl -> len > 0 && cl -> outputl < 0)
 		{
 			int i;
 			for (i = 0; i < cl -> len; i++)