Skip to content

Commit

Permalink
Use more %zu for size_ts
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 6, 2023
1 parent b35aecf commit 5d854e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/backends/glsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static void write_code(char *glsl, char *directory, const char *filename, const

fprintf(file, "\";\n\n");

fprintf(file, "size_t %s_size = %" PRIu64 ";\n\n", name, length);
fprintf(file, "size_t %s_size = %zu;\n\n", name, length);

fprintf(file, "/*\n%s*/\n", glsl);

Expand Down
2 changes: 1 addition & 1 deletion Sources/backends/hlsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static void write_bytecode(char *hlsl, char *directory, const char *filename, co
}
fprintf(file, "\";\n");

fprintf(file, "size_t %s_size = %" PRIu64 ";\n\n", name, output_size);
fprintf(file, "size_t %s_size = %zu;\n\n", name, output_size);

fprintf(file, "/*\n%s*/\n", hlsl);

Expand Down
2 changes: 1 addition & 1 deletion Sources/backends/wgsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static void write_code(char *wgsl, char *directory, const char *filename) {

fprintf(file, "\";\n\n");

fprintf(file, "size_t wgsl_size = %" PRIu64 ";\n\n", length);
fprintf(file, "size_t wgsl_size = %zu;\n\n", length);

fprintf(file, "/*\n%s*/\n", wgsl);

Expand Down

0 comments on commit 5d854e5

Please sign in to comment.