fix: Warning on macOS about wrong format argument
This commit is contained in:
parent
4bc4882b1f
commit
f877bf21ba
@ -911,7 +911,7 @@ void TextEditor::RenderText(const char *aTitle, const ImVec2 &lineNumbersStartPo
|
|||||||
char buf[16];
|
char buf[16];
|
||||||
|
|
||||||
if (mShowLineNumbers)
|
if (mShowLineNumbers)
|
||||||
snprintf(buf, 16, " %d ", globalLineMax);
|
snprintf(buf, 16, " %d ", int(globalLineMax));
|
||||||
else
|
else
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
mTextStart = ImGui::GetFont()->CalcTextSizeA(ImGui::GetFontSize(), FLT_MAX, -1.0f, buf, nullptr, nullptr).x + mLeftMargin;
|
mTextStart = ImGui::GetFont()->CalcTextSizeA(ImGui::GetFontSize(), FLT_MAX, -1.0f, buf, nullptr, nullptr).x + mLeftMargin;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user