FFI/ARM64: Fix pass-by-value struct calling conventions.

master
Mike Pall 2020-03-20 14:10:18 +01:00
parent fc1c4da3cc
commit 9143e86498
1 changed files with 2 additions and 1 deletions

View File

@ -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; \