Fix alignment of FFI_TYPE_FLOAT for Apple's ARM64 ABI

This commit is contained in:
Ole André Vadla Ravnås
2014-07-25 21:40:50 +02:00
committed by Ole André Vadla Ravnås
parent 1cee07be47
commit aebf2c3023

View File

@@ -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