diff lwasm/pass4.c @ 160:02804b7c051c

Don't error out on dlen set and len not for insn length resolution
author lost@l-w.ca
date Sun, 28 Aug 2011 14:17:33 -0600
parents 697bc543368c
children 348e2816ce32
line wrap: on
line diff
--- a/lwasm/pass4.c	Sun Aug 28 14:16:45 2011 -0600
+++ b/lwasm/pass4.c	Sun Aug 28 14:17:33 2011 -0600
@@ -76,7 +76,7 @@
 		if (sl -> len == -1 && sl -> insn >= 0 && instab[sl -> insn].resolve)
 		{
 			(instab[sl -> insn].resolve)(as, sl, 1);
-			if (force && sl -> len == -1)
+			if (force && sl -> len == -1 && sl -> dlen == -1)
 			{
 				lwasm_register_error(as, sl, "Instruction failed to resolve.");
 				return;