aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/memory')
-rw-r--r--arch/x86_64/src/memory/allocator/tiny_frame_allocator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/memory/allocator/tiny_frame_allocator.cpp b/arch/x86_64/src/memory/allocator/tiny_frame_allocator.cpp
index d07398a..b9fd2c8 100644
--- a/arch/x86_64/src/memory/allocator/tiny_frame_allocator.cpp
+++ b/arch/x86_64/src/memory/allocator/tiny_frame_allocator.cpp
@@ -11,7 +11,7 @@ namespace teachos::arch::memory::allocator
if (frame_option.has_value())
{
auto value = frame_option;
- frame_option = std::nullopt;
+ frame_option.reset();
return value;
}
}
@@ -24,7 +24,7 @@ namespace teachos::arch::memory::allocator
{
if (!frame_option.has_value())
{
- frame_option = physical_frame;
+ frame_option.emplace(physical_frame);
return;
}
}