aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorFelix Queißner <felix@ib-queissner.de>2019-11-11 00:08:24 +0100
committerAndrew Kelley <andrew@ziglang.org>2019-11-10 23:08:24 +0000
commitcd5c9c8998f1669059cee3d915831ee539dea2b6 (patch)
tree33680138c3e91e66b4424263633905ff7b793049 /lib/std
parentd44a69689eb2579ceb290cd19b91f824b30e6acc (diff)
downloadzig-cd5c9c8998f1669059cee3d915831ee539dea2b6.tar.gz
zig-cd5c9c8998f1669059cee3d915831ee539dea2b6.zip
Fix missing @as cast in std.fmt.formatInt (#3650)
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/fmt.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig
index e901d8d3f7..743ca4d920 100644
--- a/lib/std/fmt.zig
+++ b/lib/std/fmt.zig
@@ -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;