1
0
mirror of synced 2025-02-02 12:27:25 +01:00

fix: Warning on macOS about wrong format argument

This commit is contained in:
WerWolv 2024-12-26 23:01:19 +01:00
parent 963afdce96
commit 46ed451712

View File

@ -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;