summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-21 15:36:06 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-21 15:36:06 -0700
commitb580e0f60eab4b23e782b0f2970823a51e5000bd (patch)
tree80511cf9d648084fb467aa9224421c90fb476558 /tests
parent53fd7bd43eb9a513f5a81f9ebbd99a7cc4172430 (diff)
downloadtxr-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