Fix missing @as cast in std.fmt.formatInt (#3650)

This commit is contained in:
Felix Queißner 2019-11-11 00:08:24 +01:00 committed by Andrew Kelley
parent d44a69689e
commit cd5c9c8998

View File

@ -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;