changeset 251:0e4a9b21ad7b

Make the complaint about negative block/reservation sizes show value. Cause the error for RM[BDQ] and ZM[BDQ] report the size requested when complaining about a negative reservation amount.
author William Astle <lost@l-w.ca>
date Fri, 25 Jan 2013 22:43:10 -0700
parents 644f8abf87dc
children 201b2774cb0e
files lwasm/pseudo.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/pseudo.c	Fri Jan 25 21:54:02 2013 -0700
+++ b/lwasm/pseudo.c	Fri Jan 25 22:43:10 2013 -0700
@@ -574,7 +574,7 @@
 	{
 		if (lw_expr_intval(expr) < 0)
 		{
-			lwasm_register_error(as, l, "Negative reservation sizes make no sense!");
+			lwasm_register_error(as, l, "Negative reservation sizes make no sense! (%d)", lw_expr_intval(expr));
 			l -> len = 0;
 			l -> dlen = 0;
 			return;
@@ -658,7 +658,7 @@
 	{
 		if (lw_expr_intval(expr) < 0)
 		{
-			lwasm_register_error(as, l, "Negative reservation sizes make no sense!");
+			lwasm_register_error(as, l, "Negative reservation sizes make no sense! (%d)", lw_expr_intval(expr));
 			l -> len = 0;
 			l -> dlen = 0;
 			return;
@@ -742,7 +742,7 @@
 	{
 		if (lw_expr_intval(expr) < 0)
 		{
-			lwasm_register_error(as, l, "Negative reservation sizes make no sense!");
+			lwasm_register_error(as, l, "Negative reservation sizes make no sense! (%d)", lw_expr_intval(expr));
 			l -> len = 0;
 			l -> dlen = 0;
 			return;
@@ -790,7 +790,7 @@
 	{
 		if (lw_expr_intval(expr) < 0)
 		{
-			lwasm_register_error(as, l, "Negative block sizes make no sense!");
+			lwasm_register_error(as, l, "Negative block sizes make no sense! (%d)", lw_expr_intval(expr));
 			l -> len = 0;
 			return;
 		}
@@ -839,7 +839,7 @@
 	{
 		if (lw_expr_intval(expr) < 0)
 		{
-			lwasm_register_error(as, l, "Negative block sizes make no sense!");
+			lwasm_register_error(as, l, "Negative block sizes make no sense! (%d)", lw_expr_intval(expr));
 			l -> len = 0;
 			return;
 		}
@@ -887,7 +887,7 @@
 	{
 		if (lw_expr_intval(expr) < 0)
 		{
-			lwasm_register_error(as, l, "Negative block sizes make no sense!");
+			lwasm_register_error(as, l, "Negative block sizes make no sense! (%d)", lw_expr_intval(expr));
 			l -> len = 0;
 			return;
 		}