# HG changeset patch # User lost@l-w.ca # Date 1301983978 21600 # Node ID f55650f5e9b8f1cab9bad2c1eca2ecc951c26d43 # Parent bd8b3fbd1e2821bd39ad71ccbb6efc5986550ddd Fixed problems with macro expansion supression diff -r bd8b3fbd1e28 -r f55650f5e9b8 lwasm/list.c --- 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;