|
From: Wolfgang T. <wth...@us...> - 2006-03-17 04:20:38
|
Update of /cvsroot/hoc/libffi/src/x86 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31454/src/x86 Modified Files: ffi_darwin.c Log Message: Fix 16-byte alignment for darwin/x86. Index: ffi_darwin.c =================================================================== RCS file: /cvsroot/hoc/libffi/src/x86/ffi_darwin.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- ffi_darwin.c 17 Mar 2006 03:47:57 -0000 1.1.1.1 +++ ffi_darwin.c 17 Mar 2006 04:20:33 -0000 1.2 @@ -168,7 +168,7 @@ } /* Darwin: The stack needs to be aligned to a multiple of 16 bytes */ - cif->bytes = (cif->bytes + 15) & ~0xF; + cif->bytes = ((cif->bytes + 8 + 15) & ~0xF) - 8; return FFI_OK; } |