changeset 113:7e621e00b887

Fixed uninitialized variable in &-prefix and %-prefix constant parsing
author lost@l-w.ca
date Sun, 07 Aug 2011 12:31:19 -0600
parents 3fc568436721
children 707eda49ad60
files lwasm/lwasm.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/lwasm.c	Sun Aug 07 12:15:56 2011 -0600
+++ b/lwasm/lwasm.c	Sun Aug 07 12:31:19 2011 -0600
@@ -337,6 +337,7 @@
 	
 	if (**p == '&')
 	{
+		val = 0;
 		// decimal constant
 		(*p)++;
 		
@@ -359,6 +360,7 @@
 
 	if (**p == '%')
 	{
+		val = 0;
 		// binary constant
 		(*p)++;