aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-18 16:21:11 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-18 16:21:11 +0100
commit266dde7d535d997a45f6eef41e44ebcaa516b75a (patch)
tree5cfbb4b2ebbac9b4c7ab8663cc86450313d4bb3a /libs
parente0423b3d47d1aab54c55a85cce59555cb076e1ab (diff)
downloadteachos-266dde7d535d997a45f6eef41e44ebcaa516b75a.tar.xz
teachos-266dde7d535d997a45f6eef41e44ebcaa516b75a.zip
kstd/io: fix hex digit formatting
Diffstat (limited to 'libs')
-rw-r--r--libs/kstd/include/kstd/bits/formatter.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/kstd/include/kstd/bits/formatter.hpp b/libs/kstd/include/kstd/bits/formatter.hpp
index 229e76d..4d983f3 100644
--- a/libs/kstd/include/kstd/bits/formatter.hpp
+++ b/libs/kstd/include/kstd/bits/formatter.hpp
@@ -75,7 +75,7 @@ namespace kstd
}();
auto buffer = std::array<char, maximum_digits>{};
- auto digits = (base == base::hex) ? "0123456789abcdef" : "0123456789";
+ auto digits = (specs.type == 'X') ? "0123456789ABCDEF" : "0123456789abcdef";
auto current = buffer.rbegin();
if (absolute_value == 0)