Commit 4e6c1b676b

Vexu <15308111+Vexu@users.noreply.github.com>
2019-11-19 17:02:01
add cast to not hit #2561
1 parent 4d9318c
Changed files (1)
lib
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 {