aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
}