summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);