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 4b41483..1c30da6 100644
--- a/c/lex.c
+++ b/c/lex.c
@@ -998,7 +998,7 @@ tryexpand(struct lexer *lx, struct token *tk)
tk2[0] = *tk_, tk2[1] = tk;
noexpandmac = 0;
pushmacstk(lx, &span, &(struct macrostack) {
- .rlist = { tk2, 2 },
+ .rlist = { tk2, 2 - (tk.t == TKEOF) },
.exspan = span.ex,
.macno = macidx,
});