diff options
author | Anthony Green <green@moxielogic.com> | 2022-09-24 21:38:57 -0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2022-09-24 21:38:57 -0400 |
commit | f93224d38662a8cdc33ca56fe6f2d5650a86d690 (patch) | |
tree | 3bb763a2ed50dd53156e9e78c4327433f4048798 /src | |
parent | e79f19489bb294ce60bef5cdba5e56c3e7d84382 (diff) | |
download | libffi-f93224d38662a8cdc33ca56fe6f2d5650a86d690.tar.gz |
moxie: All struct args are passed in memory
Diffstat (limited to 'src')
-rw-r--r-- | src/moxie/ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/moxie/ffi.c b/src/moxie/ffi.c index 15dfaaf..99bcf40 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 > 4) + if (at->type == FFI_TYPE_STRUCT) /* && size > 4) All struct args?? */ { char *argcopy = alloca (size); memcpy (argcopy, avalue[i], size); |