From 266dde7d535d997a45f6eef41e44ebcaa516b75a Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 18 Dec 2025 16:21:11 +0100 Subject: kstd/io: fix hex digit formatting --- libs/kstd/include/kstd/bits/formatter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') 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{}; - auto digits = (base == base::hex) ? "0123456789abcdef" : "0123456789"; + auto digits = (specs.type == 'X') ? "0123456789ABCDEF" : "0123456789abcdef"; auto current = buffer.rbegin(); if (absolute_value == 0) -- cgit v1.2.3