changeset 50:f55650f5e9b8

Fixed problems with macro expansion supression
author lost@l-w.ca
date Tue, 05 Apr 2011 00:12:58 -0600
parents bd8b3fbd1e28
children fd1ecc5d6e69
files lwasm/list.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/list.c	Tue Apr 05 00:06:28 2011 -0600
+++ b/lwasm/list.c	Tue Apr 05 00:12:58 2011 -0600
@@ -35,10 +35,10 @@
 */
 void do_list(asmstate_t *as)
 {
-	line_t *cl, *nl;
+	line_t *cl, *nl, *nl2;
 	FILE *of;
 	int i;
-	char *obytes = NULL;
+	unsigned char *obytes = NULL;
 	int obytelen = 0;
 	
 	char *tc;
@@ -76,12 +76,12 @@
 			}
 			obytes = lw_alloc(obytelen);
 			nc = 0;
-			for (nl = cl; ; nl = nl -> next)
+			for (nl2 = cl; ; nl2 = nl2 -> next)
 			{
 				int i;
-				for (i = 0; i < nl -> outputl; i++)
+				for (i = 0; i < nl2 -> outputl; i++)
 				{
-					obytes[nc++] = nl -> output[i];
+					obytes[nc++] = nl2 -> output[i];
 				}
 				if (nc >= obytelen)
 					break;