diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-19 19:08:57 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-19 19:08:57 -0700 |
commit | 59257d1bfc363eec3b4eb5b49119a3bcfde9cc71 (patch) | |
tree | c3aca4f96bf17c7825004bd562fb6862b0bfa9b1 /struct.c | |
parent | 6e4e69c19a2a75a47180d8c3bb4b13137c521fec (diff) | |
download | txr-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