Skip to content

Commit

Permalink
Fix missing @as cast in std.fmt.formatInt (#3650)
Browse files Browse the repository at this point in the history
ikskuh authored and andrewrk committed Nov 10, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d44a696 commit cd5c9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/fmt.zig
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit cd5c9c8

Please sign in to comment.