![](https://secure.gravatar.com/avatar/f1897d8cf2fe6c8e75a0c9add2d05b0c.jpg?s=120&d=mm&r=g)
19 Oct
2021
19 Oct
'21
4:23 p.m.
On Tue, Oct 19, 2021 at 4:16 PM Rich Felker dalias@libc.org wrote:
On Mon, Oct 18, 2021 at 04:42:04PM -0400, Rich Felker wrote:
Well for little endian either would work (because adj is 0 :) but yes there are 3 such paddings before the second member on big endian, so it should be 3.
How about this? It avoids open coding the logic and handles it as 2 4-byte substructures with endian-specific offsets.
Looks good to me.
Arnd