From f877bf21ba601a611fd78c935875029b7499432c Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 26 Dec 2024 23:01:19 +0100 Subject: [PATCH] fix: Warning on macOS about wrong format argument --- lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp b/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp index f9002851c..c86d435ba 100644 --- a/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp +++ b/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp @@ -911,7 +911,7 @@ void TextEditor::RenderText(const char *aTitle, const ImVec2 &lineNumbersStartPo char buf[16]; if (mShowLineNumbers) - snprintf(buf, 16, " %d ", globalLineMax); + snprintf(buf, 16, " %d ", int(globalLineMax)); else buf[0] = '\0'; mTextStart = ImGui::GetFont()->CalcTextSizeA(ImGui::GetFontSize(), FLT_MAX, -1.0f, buf, nullptr, nullptr).x + mLeftMargin;