diff options
author | Ole André Vadla Ravnås <ole.andre.ravnas@tillitech.com> | 2014-07-25 21:40:50 +0200 |
---|---|---|
committer | Ole André Vadla Ravnås <ole.andre.ravnas@soundrop.com> | 2014-07-26 00:17:47 +0200 |
commit | aebf2c3023b5ff056a708dc34169f7b549b2ec4f (patch) | |
tree | f59055daab7ad3da3da3722e6137b825806fc254 | |
parent | 1cee07be4712411baa5eb8af22698bc8443a6d6e (diff) | |
download | libffi-aebf2c3023b5ff056a708dc34169f7b549b2ec4f.tar.gz |
Fix alignment of FFI_TYPE_FLOAT for Apple's ARM64 ABI
-rw-r--r-- | src/aarch64/ffi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c index b807a2d..10e95db 100644 --- a/src/aarch64/ffi.c +++ b/src/aarch64/ffi.c @@ -146,6 +146,9 @@ get_basic_type_alignment (unsigned short type) switch (type) { case FFI_TYPE_FLOAT: +#if defined (__APPLE__) + return sizeof (UINT32); +#endif case FFI_TYPE_DOUBLE: return sizeof (UINT64); #if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE |