diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-21 15:36:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-21 15:36:06 -0700 |
commit | b580e0f60eab4b23e782b0f2970823a51e5000bd (patch) | |
tree | 80511cf9d648084fb467aa9224421c90fb476558 /tests | |
parent | 53fd7bd43eb9a513f5a81f9ebbd99a7cc4172430 (diff) | |
download | txr-b580e0f60eab4b23e782b0f2970823a51e5000bd.tar.gz txr-b580e0f60eab4b23e782b0f2970823a51e5000bd.tar.bz2 txr-b580e0f60eab4b23e782b0f2970823a51e5000bd.zip |
ffi: bugfix: revisit alignment.
Replace the incorrect alignment assumption for the basic types
(size == alignment) with the true calculation obtained from the
compiler.
* ffi.c (alignof): New macro.
(make_ffi_type_builtin): Take alignment as separate argument.
(ffi_type_compile, ffi_init_types): Using alignof macro,
calculate alignment of each type that is created using
make_ffi_type_builtin, and pass to that function.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions