mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-04 04:00:07 +00:00
LowerBound() minor tweaks
This commit is contained in:
parent
571b08f315
commit
1870738880
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue