From 4e6c1b676b30920fb333a6aa270bb42dc4cecc79 Mon Sep 17 00:00:00 2001 From: Vexu <15308111+Vexu@users.noreply.github.com> Date: Tue, 19 Nov 2019 18:02:01 +0200 Subject: [PATCH] add cast to not hit #2561 --- lib/std/coff.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/coff.zig b/lib/std/coff.zig index 3890151d09..c6d7660f8b 100644 --- a/lib/std/coff.zig +++ b/lib/std/coff.zig @@ -179,7 +179,7 @@ pub const Coff = struct { if (byte != 0 and i == buffer.len) return error.NameTooLong; - return i; + return @as(usize, i); } pub fn loadSections(self: *Coff) !void {