summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2022-05-28 17:24:43 -0400
committerAnthony Green <green@moxielogic.com>2022-05-28 17:24:43 -0400
commitfaafcb9df9aebdde1415a73d17fe9e943d97d455 (patch)
tree12a8b762e908b8aa412d05914488bde78eec63bd /src
parentf55d7ff1a24e9c678dac3397175772a9914c02b0 (diff)
downloadlibffi-faafcb9df9aebdde1415a73d17fe9e943d97d455.tar.gz
Fix moxie struct passing
Diffstat (limited to 'src')
-rw-r--r--src/moxie/ffi.c2
1 files changed, 1 insertions, 1 deletions
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);