mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
AK: Fix overflow and mixed-signedness issues in binary_search() (#2961)
This commit is contained in:
@@ -184,7 +184,7 @@ bool XtermSuggestionDisplay::cleanup()
|
||||
size_t XtermSuggestionDisplay::fit_to_page_boundary(size_t selection_index)
|
||||
{
|
||||
ASSERT(m_pages.size() > 0);
|
||||
int index = 0;
|
||||
size_t index = 0;
|
||||
|
||||
auto* match = binary_search(
|
||||
m_pages.span(), { selection_index, selection_index }, [](auto& a, auto& b) -> int {
|
||||
|
||||
Reference in New Issue
Block a user