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 | 79a67942651b7b1f15838fda053d72d17b3f2884 (patch) | |
tree | f1d52cae5c304aae37997172a6f5b2206e99250f /struct.h | |
parent | 446853ed69188bb6d3080eb852d07b240ddd0db2 (diff) | |
download | txr-79a67942651b7b1f15838fda053d72d17b3f2884.tar.gz txr-79a67942651b7b1f15838fda053d72d17b3f2884.tar.bz2 txr-79a67942651b7b1f15838fda053d72d17b3f2884.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.h')
0 files changed, 0 insertions, 0 deletions