Skip to content

Commit

Permalink
FFI/ARM64: Fix pass-by-value struct calling conventions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pall committed Mar 20, 2020
1 parent fc1c4da commit 9143e86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lj_ccall.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@
if (LJ_TARGET_IOS && isva) { \
/* IOS: All variadic arguments are on the stack. */ \
} else if (isfp) { /* Try to pass argument in FPRs. */ \
int n2 = ctype_isvector(d->info) ? 1 : n*isfp; \
int n2 = ctype_isvector(d->info) ? 1 : \
isfp == 1 ? n : (d->size >> (4-isfp)); \
if (nfpr + n2 <= CCALL_NARG_FPR) { \
dp = &cc->fpr[nfpr]; \
nfpr += n2; \
Expand Down

0 comments on commit 9143e86

Please sign in to comment.