macho: fix 32bit build

This commit is contained in:
Jakub Konka
2022-11-08 21:21:25 +01:00
parent 9db63d4f1d
commit 188ad31cf3

View File

@@ -419,7 +419,7 @@ fn findFormSize(self: DwarfInfo, form: u64, di_off: usize, cuh: CompileUnit.Head
while (i < len) : (i += 1) {
_ = try reader.readByte();
}
return creader.bytes_read;
return math.cast(usize, creader.bytes_read) orelse error.Overflow;
},
dwarf.FORM.exprloc => {