aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2024-03-24 01:27:47 -0700
committerMichael Forney <mforney@mforney.org>2024-03-24 02:41:29 -0700
commit8e3ebaab5842d5fb8afcb977642277162de0611b (patch)
treee3395e39e69e259ba1d297e524fb014d8dce37b9
parent9a34e3c5ce34662be956bdb1d0ad988316d16a94 (diff)
Fix printf format specifier
-rw-r--r--decl.c2
1 files changed, 1 insertions, 1 deletions
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");
}