Don't use 16 byte aligned stack for WIN32

This fixes a crash when accessing __stdcall functions in Python ctypes.
This commit is contained in:
Vitaly Budovski
2013-09-05 12:05:06 +10:00
parent 0f8690a84c
commit 6aa15900ac

View File

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