From 8e3ebaab5842d5fb8afcb977642277162de0611b Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 24 Mar 2024 01:27:47 -0700 Subject: Fix printf format specifier --- decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decl.c b/decl.c index 0a5cf6d..5f32061 100644 --- a/decl.c +++ b/decl.c @@ -857,7 +857,7 @@ staticassert(struct scope *s) tokencheck(&tok, TSTRINGLIT, "after static assertion expression"); stringconcat(&msg, true); if (!c) - error(&tok.loc, "static assertion failed: %.*s", (int)(msg.size - 1), msg.data); + error(&tok.loc, "static assertion failed: %.*s", (int)(msg.size - 1), (char *)msg.data); } else if (!c) { error(&tok.loc, "static assertion failed"); } -- cgit v1.2.3