1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-09-24 19:48:34 +02:00

LowerBound() minor tweaks

This commit is contained in:
omar 2017-11-07 14:05:48 +01:00
parent 571b08f315
commit 1870738880

View File

@ -1385,10 +1385,10 @@ static ImVector<ImGuiStorage::Pair>::iterator LowerBound(ImVector<ImGuiStorage::
{
ImVector<ImGuiStorage::Pair>::iterator first = data.begin();
ImVector<ImGuiStorage::Pair>::iterator last = data.end();
int count = (int)(last - first);
size_t count = (size_t)(last - first);
while (count > 0)
{
int count2 = count / 2;
size_t count2 = count >> 1;
ImVector<ImGuiStorage::Pair>::iterator mid = first + count2;
if (mid->key < key)
{