Skip to content

Commit

Permalink
Fix testStdCallCallbackStackAlignment on win32-x86
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Nov 22, 2020
1 parent a791ce5 commit d809496
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions native/libffi/src/x86/ffi.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ ffi_prep_cif_machdep(ffi_cif *cif)
{
ffi_type *t = cif->arg_types[i];

#if defined(_M_IX86)
if (cif->abi != FFI_STDCALL)
#endif
bytes = FFI_ALIGN (bytes, t->alignment);
bytes += FFI_ALIGN (t->size, FFI_SIZEOF_ARG);
}
Expand Down

0 comments on commit d809496

Please sign in to comment.