diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-19 18:21:07 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-19 18:21:07 -0700 |
commit | 4c2ec704d2bd0b678a8b9d5c3193458615dcae56 (patch) | |
tree | f1d52cae5c304aae37997172a6f5b2206e99250f /struct.c | |
parent | 9173d841ec8a737ca6320acf59407e7bac960e9f (diff) | |
download | txr-4c2ec704d2bd0b678a8b9d5c3193458615dcae56.tar.gz txr-4c2ec704d2bd0b678a8b9d5c3193458615dcae56.tar.bz2 txr-4c2ec704d2bd0b678a8b9d5c3193458615dcae56.zip |
ffi: bugfix: empty structs/unions have alignment of 1.
* ffi.c (make_ffi_type_struct, make_ffi_type_union): Initialize
most_align local variable to 1, so the lower bound of alignment
is that, rather than zero.
* tests/017/ffi-misc.tl: Tests added.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions