diff --git a/imgui.cpp b/imgui.cpp index 02d8b730..6ee82661 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -1645,7 +1645,7 @@ void ImGuiListClipper::End() if (ItemsCount < 0) return; // In theory here we should assert that ImGui::GetCursorPosY() == StartPosY + DisplayEnd * ItemsHeight, but it feels saner to just seek at the end and not assert/crash the user. - if (ItemsCount < INT_MAX) + if (ItemsCount < IM_INT_MAX) SetCursorPosYAndSetupDummyPrevLine(StartPosY + ItemsCount * ItemsHeight, ItemsHeight); // advance cursor ItemsCount = -1; StepNo = 3;