changeset 95:a23f732c5ce8

Fixed &-prefix decimal constant parse problem
author lost@l-w.ca
date Sat, 06 Aug 2011 10:37:27 -0600
parents 61c084b2c727
children 8ee33204fa79
files lwasm/lwasm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/lwasm.c	Sat Aug 06 10:29:12 2011 -0600
+++ b/lwasm/lwasm.c	Sat Aug 06 10:37:27 2011 -0600
@@ -355,7 +355,7 @@
 			val = val * 10 + (**p - '0');
 			(*p)++;
 		}
-		return lw_expr_build(lw_expr_type_int, v * neg);
+		return lw_expr_build(lw_expr_type_int, val * neg);
 	}
 
 	if (**p == '%')