diff lwasm/lwasm.c @ 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 40409fd84824
children 697bc543368c
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)++;