summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2013-03-16 04:24:40 -0700
committerAnthony Green <green@moxielogic.com>2013-03-16 04:24:40 -0700
commit7e1b32649efd24814e86172e196f390566f9e970 (patch)
tree3656b629640b6708b2641d3d82ebe61fd67a5761
parentf308faf1eabaf8dc24966ab17fbf94368f46b9c7 (diff)
parentee18766b169811426c14b011fbb46d81e344f926 (diff)
downloadlibffi-7e1b32649efd24814e86172e196f390566f9e970.tar.gz
Merge pull request #32 from alex/patch-1
Fix for a crasher due to misaligned stack on x86-32.
-rw-r--r--src/x86/ffi.c2
1 files changed, 0 insertions, 2 deletions
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;
}