Mercurial > hg > index.cgi
diff lwasm/pass1.c @ 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 | 5bf9edabd661 |
children | 697bc543368c |
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