summaryrefslogtreecommitdiff
path: root/asm/preproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'asm/preproc.c')
-rw-r--r--asm/preproc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/asm/preproc.c b/asm/preproc.c
index f94d9558..befe77e8 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -5379,8 +5379,10 @@ static SMacro *expand_one_smacro(Token ***tpp)
Token *endt = tline;
tline = t;
- while (!cond_comma && t && t != endt)
+ while (!cond_comma && t && t != endt) {
cond_comma = t->type != TOK_WHITESPACE;
+ t = t->next;
+ }
}
if (tnext) {