changeset 217:f87c86668d6b

Fix handling of comments on ELSE lines
author William Astle <lost@l-w.ca>
date Sun, 10 Jun 2012 14:14:43 -0600
parents 398773d7e504
children b0c9df865b25
files lwasm/pseudo.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/pseudo.c	Sun Jun 10 14:10:04 2012 -0600
+++ b/lwasm/pseudo.c	Sun Jun 10 14:14:43 2012 -0600
@@ -1154,6 +1154,7 @@
 PARSEFUNC(pseudo_parse_else)
 {
 	l -> len = 0;
+	skip_operand(p);
 	
 	if (as -> skipmacro)
 		return;
@@ -1164,13 +1165,11 @@
 		{
 			as -> skipcount = 0;
 			as -> skipcond = 0;
-			skip_operand(p);
 		}
 		return;
 	}
 	as -> skipcond = 1;
 	as -> skipcount = 1;
-	skip_operand(p);
 }
 
 PARSEFUNC(pseudo_parse_ifdef)