Fix for a crasher due to misaligned stack on x86-32.

Full information on reproduction (using Python's ctypes available here: http://bugs.python.org/issue17423)
This commit is contained in:
Alex Gaynor
2013-03-14 15:00:33 -07:00
parent f308faf1ea
commit ee18766b16

View File

@@ -315,9 +315,7 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif)
cif->bytes += 4 * sizeof(ffi_arg);
#endif
#ifdef X86_DARWIN
cif->bytes = (cif->bytes + 15) & ~0xF;
#endif
return FFI_OK;
}