From cd5c9c8998f1669059cee3d915831ee539dea2b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Quei=C3=9Fner?= Date: Mon, 11 Nov 2019 00:08:24 +0100 Subject: [PATCH] Fix missing @as cast in std.fmt.formatInt (#3650) --- lib/std/fmt.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig index e901d8d3f78a614fc1d75b63866f4a851e305965..743ca4d9201a4a1b667b7768cc31115740c55cd3 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; -- 2.54.0