summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-19 19:08:57 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-19 19:08:57 -0700
commit59257d1bfc363eec3b4eb5b49119a3bcfde9cc71 (patch)
treec3aca4f96bf17c7825004bd562fb6862b0bfa9b1 /struct.c
parent6e4e69c19a2a75a47180d8c3bb4b13137c521fec (diff)
downloadtxr-59257d1bfc363eec3b4eb5b49119a3bcfde9cc71.tar.gz
txr-59257d1bfc363eec3b4eb5b49119a3bcfde9cc71.tar.bz2
txr-59257d1bfc363eec3b4eb5b49119a3bcfde9cc71.zip
ffi: bugfix: transition between bitfield cell sizes.
* ffi.c (make_ffi_type_struct): When a bitfield is declared for a type whose alignment is different from that of the previous member, then we start the new bitfield on a fresh alignment. As usual, if the previous member is a bitfield which left a partially filled byte, we skip to the next byte and then do the alignment. This seems to match GCC behavior.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions