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
Some time ago I fixed issues with packed struct in stage1 so that @sizeOf(Rgb24) would return 3 and if I have pixels: []Rgb24 I could use reader.readAll(std.mem.sliceAsBytes(pixels)) to load tightly packed Rgb24 data.
Actual Behavior
Now in stage2 @sizeOf(Rgb24) returns 4 and the array also isn't tightly packed but has additional byte of padding for each element which breaks readAll code.
The text was updated successfully, but these errors were encountered:
igor84
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Aug 21, 2022
Zig Version
0.10.0-dev.3664+02070ae26
Steps to Reproduce
Expected Behavior
The above test should pass.
Some time ago I fixed issues with packed struct in stage1 so that
@sizeOf(Rgb24)
would return3
and if I havepixels: []Rgb24
I could usereader.readAll(std.mem.sliceAsBytes(pixels))
to load tightly packed Rgb24 data.Actual Behavior
Now in stage2
@sizeOf(Rgb24)
returns4
and the array also isn't tightly packed but has additional byte of padding for each element which breaksreadAll
code.The text was updated successfully, but these errors were encountered: