mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Fix missing @as cast in std.fmt.formatInt (#3650)
This commit is contained in:
parent
d44a69689e
commit
cd5c9c8998
@ -892,7 +892,7 @@ pub fn formatInt(
|
||||
) Errors!void {
|
||||
const int_value = if (@typeOf(value) == comptime_int) blk: {
|
||||
const Int = math.IntFittingRange(value, value);
|
||||
break :blk Int(value);
|
||||
break :blk @as(Int, value);
|
||||
} else
|
||||
value;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user