Skip to content

Commit

Permalink
Pick e42520c for libffi
Browse files Browse the repository at this point in the history
  • Loading branch information
fkistner committed Nov 30, 2020
1 parent 0c0d5c6 commit 9bd29b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions native/libffi/src/aarch64/ffi.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,12 +646,13 @@ ffi_call_int (ffi_cif *cif, void (*fn)(void), void *orig_rvalue,
state.ngrn = N_X_ARG_REG;
/* Note that the default abi extends each argument
to a full 64-bit slot, while the iOS abi allocates
only enough space. */
only enough space, except for variadic arguments. */
#ifdef __APPLE__
memcpy(d, a, s);
#else
*(ffi_arg *)d = ext;
if (!state.allocating_variadic)
memcpy(d, a, s);
else
#endif
*(ffi_arg *)d = ext;
}
}
break;
Expand Down

0 comments on commit 9bd29b4

Please sign in to comment.