diff --git a/imgui.cpp b/imgui.cpp index ce03aafb0..69ee04d9b 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -1385,10 +1385,10 @@ static ImVector::iterator LowerBound(ImVector::iterator first = data.begin(); ImVector::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::iterator mid = first + count2; if (mid->key < key) {