aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/vga
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/vga')
-rw-r--r--arch/x86_64/src/vga/text.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/src/vga/text.cpp b/arch/x86_64/src/vga/text.cpp
index 0e0d353..6ecffa3 100644
--- a/arch/x86_64/src/vga/text.cpp
+++ b/arch/x86_64/src/vga/text.cpp
@@ -48,7 +48,7 @@ namespace teachos::vga::x86_64::text
auto current_line = buffer_offset / DEFAULT_TEXT_BUFFER_WIDTH;
auto next_line = current_line + 1;
- if (next_line >= DEFAULT_TEXT_BUFFER_HEIGHT)
+ if (std::cmp_greater_equal(next_line, DEFAULT_TEXT_BUFFER_HEIGHT))
{
auto begin = vga_buffer_pointer + DEFAULT_TEXT_BUFFER_WIDTH;
auto end = vga_buffer_pointer + DEFAULT_TEXT_BUFFER_WIDTH * DEFAULT_TEXT_BUFFER_HEIGHT;
@@ -63,12 +63,12 @@ namespace teachos::vga::x86_64::text
auto device::write(std::string_view code_points, attribute attribute) -> void
{
- std::ranges::for_each(code_points, [&](auto code_point) { write_char(code_point, attribute); });
+ std::ranges::for_each(code_points, [&](auto code_point) -> void { write_char(code_point, attribute); });
}
auto device::writeln(std::string_view code_points, attribute attribute) -> void
{
- std::ranges::for_each(code_points, [&](auto code_point) { write_char(code_point, attribute); });
+ std::ranges::for_each(code_points, [&](auto code_point) -> void { write_char(code_point, attribute); });
newline();
}