3 ms·
I would guess that if the struct is packed, the compiler won't assume any particular alignment for the struct itself either, so even if a member is properly ali
by mikeash 10y ago
I would guess that if the struct is packed, the compiler won't assume any particular alignment for the struct itself either, so even if a member is properly aligned relative to the beginning of the struct, it may not be properly aligned in memory.