comparison lwasm/pseudo.c @ 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 7887a48b74df
comparison
equal deleted inserted replaced
224:3864d96ee8c7 225:823560a8c251
1305 } 1305 }
1306 1306
1307 PARSEFUNC(pseudo_parse_warning) 1307 PARSEFUNC(pseudo_parse_warning)
1308 { 1308 {
1309 lwasm_register_warning(as, l, "User warning: %s", *p); 1309 lwasm_register_warning(as, l, "User warning: %s", *p);
1310 l -> len = 0;
1310 skip_operand(p); 1311 skip_operand(p);
1311 } 1312 }
1312 1313
1313 PARSEFUNC(pseudo_parse_includebin) 1314 PARSEFUNC(pseudo_parse_includebin)
1314 { 1315 {