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
This might be working as designed - let's discuss.
How it works for packed fields is:
The first field that is not byte-aligned is an integer that is byte-aligned, and holds all the fields following until the struct becomes byte-aligned again.
@offsetOf and pointers must be byte-aligned, so they point to this byte-aligned integer. Pointers have extra metadata to specify the bit offset. @offsetOf does not currently have a way to represent this information. I believe that is why @bitOffsetOf would exist.
I was looking at #633 and happened across this bug. d, e, f and g all return 6.
The text was updated successfully, but these errors were encountered: