diff lwasm/parse.c @ 250:0986834ec7d3 2.x

Added no-op .bank pseudo-op to support compiling gcc6809
author lost
date Thu, 26 Nov 2009 21:12:45 +0000
parents c8bcc396ec59
children c537a3a723fc
line wrap: on
line diff
--- a/lwasm/parse.c	Thu Nov 26 21:12:28 2009 +0000
+++ b/lwasm/parse.c	Thu Nov 26 21:12:45 2009 +0000
@@ -194,7 +194,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 (p2 && *p2 && !isspace(*p2) && !(l -> err) && as -> passnum == 1)
 				register_error(as, l, 1, "Bad operand: %s (%d)", p2, as -> passnum);
 		}
 		else