You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #1152, @sizeOf(i24) == 4 was considered a Zig bug, but the Zig documentation suggests this is not the case:
This size may contain padding bytes. If there were two consecutive T in memory, the padding would be the offset in bytes between element at index 0 and the element at index 1. For integer, consider whether you want to use @sizeOf(T) or @typeInfo(T).Int.bits.
The correct approach presumably involves using std.PackedIntSlice or similar in convert{To,From}, but exactly how this should be implemented is not clear. Alternatively, it might be possible to replace i24 with i24_4b (removed in hexops-graveyard/mach-sysaudio@0a6bb12) (EDIT: after minor testing this does not seem to work)
The text was updated successfully, but these errors were encountered:
In #1152,
@sizeOf(i24) == 4
was considered a Zig bug, but the Zig documentation suggests this is not the case:The correct approach presumably involves using
std.PackedIntSlice
or similar inconvert{To,From}
, but exactly how this should be implemented is not clear. Alternatively, it might be possible to replacei24
withi24_4b
(removed in hexops-graveyard/mach-sysaudio@0a6bb12) (EDIT: after minor testing this does not seem to work)The text was updated successfully, but these errors were encountered: