changeset 225:823560a8c251

Prevent infinite loop due to warning directive Warning directive failed to set the line length to 0 which caused assembly to hang since warnings are not fatal.
author William Astle <lost@l-w.ca>
date Sun, 15 Jul 2012 21:19:04 -0600
parents 3864d96ee8c7
children 7c2c2239ec9c
files lwasm/pseudo.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/pseudo.c	Sun Jul 15 20:50:18 2012 -0600
+++ b/lwasm/pseudo.c	Sun Jul 15 21:19:04 2012 -0600
@@ -1307,6 +1307,7 @@
 PARSEFUNC(pseudo_parse_warning)
 {
 	lwasm_register_warning(as, l, "User warning: %s", *p);
+	l -> len = 0;
 	skip_operand(p);
 }