summaryrefslogtreecommitdiff
path: root/Kernel/VM
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-07-26 11:22:05 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-26 16:49:06 +0200
commit707d92db61249a7f6d9aafdf214297ac4d00d8a2 (patch)
treea9b25256b243435bb12f85a875ecacf94119c33f /Kernel/VM
parentac9c2bc4920f1853a51e42af5fa8814537cff6bd (diff)
downloadserenity-707d92db61249a7f6d9aafdf214297ac4d00d8a2.zip
Refactor: Change the AK::binary_search signature to use AK::Span.
Diffstat (limited to 'Kernel/VM')
-rw-r--r--Kernel/VM/RangeAllocator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/VM/RangeAllocator.cpp b/Kernel/VM/RangeAllocator.cpp
index 62f2350ef9..0ea151d07c 100644
--- a/Kernel/VM/RangeAllocator.cpp
+++ b/Kernel/VM/RangeAllocator.cpp
@@ -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);