diff options
| author | 2025-11-23 09:04:27 +0100 | |
|---|---|---|
| committer | 2025-11-23 09:04:27 +0100 | |
| commit | 6d8e1c6b8bff19b68c7386325faeb2a425e3173a (patch) | |
| tree | 71026c7bb138b88ef902a46a46549db4ac6b6d7a /c/lex.c | |
| parent | f381c0854a02aad57f887f335fb84c0e5de32ec5 (diff) | |
cpp: fix ## bug
Diffstat (limited to 'c/lex.c')
| -rw-r--r-- | c/lex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1100,7 +1100,7 @@ expandfnmacro(struct lexer *lx, struct span *span, struct macro *mac) tk = mac->rlist.tk[i]; if (tk.t == TKPPCAT) { if (i > 0 && i < mac->rlist.n-1) { - const struct token *lhs = rlist2.n ? &rlist2.p[rlist2.n-1] : &mac->rlist.tk[i-1], + const struct token *lhs = &mac->rlist.tk[i-1], *rhs = &mac->rlist.tk[i+1]; struct token new; if (lhs->t != TKPPMACARG && rhs->t != TKPPMACARG) { |