diff lwasm/pseudo.c @ 147:9cf1796259b2

Fixed segfault in fcb,fdb,fqb with empty operands
author lost@l-w.ca
date Thu, 25 Aug 2011 22:29:58 -0600
parents d6e9cc4484f6
children 8967eb907324
line wrap: on
line diff
--- a/lwasm/pseudo.c	Wed Aug 24 21:16:17 2011 -0600
+++ b/lwasm/pseudo.c	Thu Aug 25 22:29:58 2011 -0600
@@ -138,7 +138,7 @@
 		e = lwasm_parse_expr(as, p);
 		if (!e)
 		{
-			lwasm_register_error(as, l, "Bad expression (#%s)", i);
+			lwasm_register_error(as, l, "Bad expression (#%d)", i);
 			break;
 		}
 		lwasm_save_expr(l, i++, e);
@@ -208,7 +208,7 @@
 		e = lwasm_parse_expr(as, p);
 		if (!e)
 		{
-			lwasm_register_error(as, l, "Bad expression (#%s)", i);
+			lwasm_register_error(as, l, "Bad expression (#%d)", i);
 			break;
 		}
 		lwasm_save_expr(l, i++, e);