mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
Refactor: Change the AK::binary_search signature to use AK::Span.
This commit is contained in:
parent
ac9c2bc492
commit
707d92db61
5 changed files with 20 additions and 19 deletions
|
@ -174,7 +174,7 @@ void RangeAllocator::deallocate(Range range)
|
|||
|
||||
int nearby_index = 0;
|
||||
auto* existing_range = binary_search(
|
||||
m_available_ranges.data(), m_available_ranges.size(), range, [](auto& a, auto& b) {
|
||||
m_available_ranges.span(), range, [](auto& a, auto& b) {
|
||||
return a.base().get() - b.end().get();
|
||||
},
|
||||
&nearby_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue