diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-20 11:19:05 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-20 11:19:05 +0100 |
| commit | 4f942e014dab44ccb8850c5921b81d4bd777d831 (patch) | |
| tree | c496d44a061544a5240aee56616b51801455a851 /kapi/include | |
| parent | 1865f7a162a496592e236ffcff171e7e7bc47ee2 (diff) | |
| download | teachos-4f942e014dab44ccb8850c5921b81d4bd777d831.tar.xz teachos-4f942e014dab44ccb8850c5921b81d4bd777d831.zip | |
kstd: rework formatting to be closer to std
Diffstat (limited to 'kapi/include')
| -rw-r--r-- | kapi/include/kapi/memory/address.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kapi/include/kapi/memory/address.hpp b/kapi/include/kapi/memory/address.hpp index 587aeac..13bdf4c 100644 --- a/kapi/include/kapi/memory/address.hpp +++ b/kapi/include/kapi/memory/address.hpp @@ -229,13 +229,13 @@ namespace kstd { constexpr auto static suffix = Type == kapi::memory::address_type::linear ? "%lin" : "%phy"; - constexpr auto parse(std::string_view context) -> std::string_view + constexpr auto parse(format_parse_context & context) -> format_parse_context::iterator { auto result = formatter<std::uintptr_t>::parse(context); - if (!this->specs.type) + if (!this->specifiers.type) { - this->specs.type = 'p'; - this->specs.alternative_form = true; + this->specifiers.type = 'p'; + this->specifiers.alternative_form = true; } return result; } |
