From c870cb7aa67242604ce67194c56991ce224cdff1 Mon Sep 17 00:00:00 2001 From: Jon Daniel Date: Sun, 3 Aug 2025 11:51:14 +0200 Subject: [PATCH] use %zu instead of %d for size_t printf --- src/common/rendering/stb_include.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/rendering/stb_include.cpp b/src/common/rendering/stb_include.cpp index cf9c70acd..766144675 100644 --- a/src/common/rendering/stb_include.cpp +++ b/src/common/rendering/stb_include.cpp @@ -159,7 +159,7 @@ FString stb_include_string(FString str, FString filename, TArray &filen filenames.Push(filename); size_t curIndex = filenames.Size(); - text.AppendFormat("\n#line 1 %d // %s\n", curIndex, filename.GetChars()); + text.AppendFormat("\n#line 1 %zu // %s\n", curIndex, filename.GetChars()); for (int64_t i = 0; i < num; ++i) { @@ -172,7 +172,7 @@ FString stb_include_string(FString str, FString filename, TArray &filen } text += inc; - text.AppendFormat("\n#line %d %d // %s\n", inc_list[i].next_line_after, curIndex, filename.GetChars()); + text.AppendFormat("\n#line %zu %zu // %s\n", inc_list[i].next_line_after, curIndex, filename.GetChars()); // no newlines, because we kept the #include newlines, which will get appended next last = inc_list[i].end; }