aboutsummaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index a92ee26..e62845f 100644
--- a/pp.c
+++ b/pp.c
@@ -136,8 +136,8 @@ expect(enum tokenkind kind, const char *msg)
char *lit, want[64], got[64];
if (tok.kind != kind) {
- tokdesc(want, sizeof(want), kind, NULL);
- tokdesc(got, sizeof(got), tok.kind, tok.lit);
+ tokendesc(want, sizeof(want), kind, NULL);
+ tokendesc(got, sizeof(got), tok.kind, tok.lit);
error(&tok.loc, "expected %s %s, saw %s", want, msg, got);
}
lit = tok.lit;