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
is it 24 ? packed structs create an integer that is in bits the sum of all the fields and primarily used for bit-packing non-power-of-two values into one. here your struct is lowered as a u160 and likely padded to become either a u192 or u256 during codegen. also note you can still assert 20 with @bitSizeOf(e820map)/8.
if what you are trying to do is guarantee layout of fields of "normal" size you are likely looking for extern struct instead.
Zig Version
0.11.0-dev.1812+26196be34
Steps to Reproduce and Observed Behavior
Output:
Expected Behavior
packed struct size should be 20 bytes.
The text was updated successfully, but these errors were encountered: