Skip to content

Commit

Permalink
Merge pull request #2396 from Wang-Yue/patch-5
Browse files Browse the repository at this point in the history
size_t should print with %zu
  • Loading branch information
nesbox authored Dec 10, 2023
2 parents e21e910 + 8d5c30f commit f8297d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/studio/editors/code.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit f8297d2

Please sign in to comment.