aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorTemariVirus <kiyonnxperiaz@gmail.com>2025-08-18 16:49:23 +0800
committerAndrew Kelley <andrew@ziglang.org>2025-08-19 11:20:30 -0700
commit51a2c0feaf5880e42323b370c2365d1651e02c3b (patch)
treef490b3f741b1ab40e69f4e2f46cf5e05a058972d /lib/std
parent81f5a7b8fd3a482de064ee1d14ffcd58d1857032 (diff)
downloadzig-51a2c0feaf5880e42323b370c2365d1651e02c3b.tar.gz
zig-51a2c0feaf5880e42323b370c2365d1651e02c3b.zip
std.Io.Writer: fix upper case hex float formatting
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/Io/Writer.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Io/Writer.zig b/lib/std/Io/Writer.zig
index 2e64f30a2b..707ed9cb94 100644
--- a/lib/std/Io/Writer.zig
+++ b/lib/std/Io/Writer.zig
@@ -1090,7 +1090,7 @@ pub fn printValue(
else => invalidFmtError(fmt, value),
},
'X' => switch (@typeInfo(T)) {
- .float, .comptime_float => return printFloatHexOptions(w, value, options.toNumber(.hex, .lower)),
+ .float, .comptime_float => return printFloatHexOptions(w, value, options.toNumber(.hex, .upper)),
.int, .comptime_int => return printInt(w, value, 16, .upper, options),
.@"enum" => return printInt(w, @intFromEnum(value), 16, .upper, options),
.@"struct" => return value.formatNumber(w, options.toNumber(.hex, .upper)),