mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-12 10:11:00 +01:00
LowerBound() minor tweaks
This commit is contained in:
parent
571b08f315
commit
1870738880
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user