macho: add missing align cast in LoadCommandIterator

This commit is contained in:
Jakub Konka 2022-08-02 20:38:00 +02:00
parent 1e710396d4
commit 421d3e8d28

View File

@ -1901,7 +1901,7 @@ pub const LoadCommandIterator = struct {
.data = it.buffer[0..hdr.cmdsize],
};
it.buffer = it.buffer[hdr.cmdsize..];
it.buffer = @alignCast(@alignOf(u64), it.buffer[hdr.cmdsize..]);
it.index += 1;
return cmd;