Skip to content

Commit cd5c9c8

Browse files
ikskuhandrewrk
authored andcommitted
Fix missing @as cast in std.fmt.formatInt (#3650)
1 parent d44a696 commit cd5c9c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/fmt.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ pub fn formatInt(
892892
) Errors!void {
893893
const int_value = if (@typeOf(value) == comptime_int) blk: {
894894
const Int = math.IntFittingRange(value, value);
895-
break :blk Int(value);
895+
break :blk @as(Int, value);
896896
} else
897897
value;
898898

0 commit comments

Comments
 (0)