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 authored and matthiasblaesing committed Jun 4, 2022
1 parent 9212e56 commit 0841b7a
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 @@ -182,6 +182,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 0841b7a

Please sign in to comment.