From 8d5c30f84ee77b0f2b8ab54f133e3874e42b5b14 Mon Sep 17 00:00:00 2001 From: Yue Wang Date: Sat, 9 Dec 2023 22:57:59 +0900 Subject: [PATCH] size_t should print with %zu --- src/studio/editors/code.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/studio/editors/code.c b/src/studio/editors/code.c index 8284375f6..4c7066983 100644 --- a/src/studio/editors/code.c +++ b/src/studio/editors/code.c @@ -456,7 +456,7 @@ static void updateEditor(Code* code) sprintf(code->status.line, "line %i/%i col %i", line + 1, getLinesCount(code) + 1, column + 1); { s32 codeLen = strlen(code->src); - sprintf(code->status.size, "size %i/%i", codeLen, MAX_CODE); + sprintf(code->status.size, "size %i/%zu", codeLen, MAX_CODE); code->status.color = codeLen > MAX_CODE ? tic_color_red : tic_color_white; } }