1
0
mirror of synced 2025-01-25 15:53:43 +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 4bc4882b1f
commit f877bf21ba

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;