aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/lex.c')
-rw-r--r--c/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/lex.c b/c/lex.c
index 7c9b615..ec0b4d2 100644
--- a/c/lex.c
+++ b/c/lex.c
@@ -1206,7 +1206,7 @@ advancemacro(struct lexer *lx, struct token *tk)
return 0;
}
*tk = rl.tk[lx->macstk->idx++];
- assert(tk->t);
+ assert(tk->t && tk->t != TKEOF);
tk->span.ex = lx->macstk->exspan;
if (tryexpand(lx, tk))
return 0;