From faafcb9df9aebdde1415a73d17fe9e943d97d455 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Sat, 28 May 2022 17:24:43 -0400 Subject: Fix moxie struct passing --- src/moxie/ffi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/moxie/ffi.c b/src/moxie/ffi.c index 12e4975..15dfaaf 100644 --- a/src/moxie/ffi.c +++ b/src/moxie/ffi.c @@ -151,7 +151,7 @@ void ffi_call(ffi_cif *cif, { ffi_type *at = arg_types[i]; int size = at->size; - if (at->type == FFI_TYPE_STRUCT && size > 8) + if (at->type == FFI_TYPE_STRUCT && size > 4) { char *argcopy = alloca (size); memcpy (argcopy, avalue[i], size); -- cgit v1.2.1