Commit 7e1b32649efd24814e86172e196f390566f9e970

Anthony Green 2013-03-16T04:24:40

Merge pull request #32 from alex/patch-1 Fix for a crasher due to misaligned stack on x86-32.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/x86/ffi.c b/src/x86/ffi.c
index 3f46693..0600414 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;
 }