add cast to not hit #2561

This commit is contained in:
Vexu
2019-11-19 18:02:01 +02:00
committed by Andrew Kelley
parent 4d9318cee0
commit 4e6c1b676b

View File

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