Build fix

This commit is contained in:
ocornut 2016-05-16 20:07:02 +02:00
parent 787be01e61
commit 47d10944a5

View File

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