From ee18766b169811426c14b011fbb46d81e344f926 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 14 Mar 2013 15:00:33 -0700 Subject: [PATCH] Fix for a crasher due to misaligned stack on x86-32. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Full information on reproduction (using Python's ctypes available here: http://bugs.python.org/issue17423) --- src/x86/ffi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/x86/ffi.c b/src/x86/ffi.c index 3f466934..0600414d 100644 --- a/src/x86/ffi.c +++ b/src/x86/ffi.c @@ -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; }