# HG changeset patch # User lost@l-w.ca # Date 1312694957 21600 # Node ID b3557f8325f7379665bc9ef7757dc2cd413f419f # Parent 43a3f106802773e11ce26c83eae4748dc699d4bd Fixed bug with symbol on a line with a comment not getting registered diff -r 43a3f1068027 -r b3557f8325f7 lwasm/pass1.c --- 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