Mercurial > hg-old > index.cgi
changeset 274:3010e24bb9c5 2.5
Fix crashing on bad expressions on pass 2
author | lost |
---|---|
date | Mon, 31 Aug 2009 08:30:13 +0000 |
parents | 88bbffa404ea |
children | 97630727000e |
files | lwasm/parse.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lwasm/parse.c Sun Aug 16 17:18:11 2009 +0000 +++ b/lwasm/parse.c Mon Aug 31 08:30:13 2009 +0000 @@ -187,7 +187,7 @@ (instab[opnum].fn)(as, l, &p2, opnum); // if we didn't end on a "space" character or EOL, throw error - if (*p2 && !isspace(*p2) && !(l -> err) && as -> passnum == 1) + if (as -> passnum == 1 && *p2 && !isspace(*p2) && !(l -> err)) register_error(as, l, 1, "Bad operand: %s (%d)", p2, as -> passnum); } else