diff options
author | Michael Forney <mforney@mforney.org> | 2024-03-24 01:27:47 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2024-03-24 02:41:29 -0700 |
commit | 8e3ebaab5842d5fb8afcb977642277162de0611b (patch) | |
tree | e3395e39e69e259ba1d297e524fb014d8dce37b9 | |
parent | 9a34e3c5ce34662be956bdb1d0ad988316d16a94 (diff) |
Fix printf format specifier
-rw-r--r-- | decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |