mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.Io.Writer: fix upper case hex float formatting
This commit is contained in:
parent
81f5a7b8fd
commit
51a2c0feaf
@ -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)),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user