Skip to content

Commit 004c975

Browse files
committed
Fix testStdCallCallbackStackAlignment on win32-x86
1 parent 8234d9b commit 004c975

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • native/libffi/src/x86

native/libffi/src/x86/ffi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ ffi_prep_cif_machdep(ffi_cif *cif)
181181
{
182182
ffi_type *t = cif->arg_types[i];
183183

184+
#if defined(_M_IX86)
185+
if (cif->abi != FFI_STDCALL)
186+
#endif
184187
bytes = FFI_ALIGN (bytes, t->alignment);
185188
bytes += FFI_ALIGN (t->size, FFI_SIZEOF_ARG);
186189
}

0 commit comments

Comments
 (0)