changeset 107:b3557f8325f7

Fixed bug with symbol on a line with a comment not getting registered
author lost@l-w.ca
date Sat, 06 Aug 2011 23:29:17 -0600
parents 43a3f1068027
children 9960e05cbe3a
files lwasm/pass1.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/pass1.c	Sat Aug 06 23:20:45 2011 -0600
+++ b/lwasm/pass1.c	Sat Aug 06 23:29:17 2011 -0600
@@ -260,8 +260,10 @@
 					break;
 			}
 			
+			// have to go to linedone here in case there was a symbol
+			// to register on this line
 			if (instab[opnum].opcode == NULL && (*tok == '*' || *tok == ';' || *tok == '#'))
-				goto nextline;
+				goto linedone;
 			
 			// p1 points to the start of the operand