aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-10-31 07:19:16 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-10-31 07:19:16 +0100
commitb1143bde71bb029ac2bf7d08ba422fcdaedd56a6 (patch)
tree5504ff2c08fdbe0f078e65c667c6fe09c02b8aab /arch/x86_64/src/memory
parentc5ff471e253b27c0d58a78a07322f63522b3e487 (diff)
downloadteachos-b1143bde71bb029ac2bf7d08ba422fcdaedd56a6.tar.xz
teachos-b1143bde71bb029ac2bf7d08ba422fcdaedd56a6.zip
build: enable linting
Diffstat (limited to 'arch/x86_64/src/memory')
-rw-r--r--arch/x86_64/src/memory/region_allocator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/src/memory/region_allocator.cpp b/arch/x86_64/src/memory/region_allocator.cpp
index a0579a3..8ea76c6 100644
--- a/arch/x86_64/src/memory/region_allocator.cpp
+++ b/arch/x86_64/src/memory/region_allocator.cpp
@@ -40,10 +40,10 @@ namespace teachos::memory::x86_64
m_current_region.reset();
auto next_area_with_free_frames =
m_memory_map | std::views::filter(&multiboot2::memory_map::region::available) |
- std::views::filter([next = m_next_frame](auto const & region) { return last_frame(region) >= next; });
+ std::views::filter([next = m_next_frame](auto const & region) -> bool { return last_frame(region) >= next; });
- auto lowest_region_with_free_frames =
- std::ranges::min_element(next_area_with_free_frames, [](auto lhs, auto rhs) { return lhs.base < rhs.base; });
+ auto lowest_region_with_free_frames = std::ranges::min_element(
+ next_area_with_free_frames, [](auto lhs, auto rhs) -> bool { return lhs.base < rhs.base; });
if (lowest_region_with_free_frames != next_area_with_free_frames.end())
{