summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2022-09-24 21:38:57 -0400
committerAnthony Green <green@moxielogic.com>2022-09-24 21:38:57 -0400
commitf93224d38662a8cdc33ca56fe6f2d5650a86d690 (patch)
tree3bb763a2ed50dd53156e9e78c4327433f4048798 /src
parente79f19489bb294ce60bef5cdba5e56c3e7d84382 (diff)
downloadlibffi-f93224d38662a8cdc33ca56fe6f2d5650a86d690.tar.gz
moxie: All struct args are passed in memory
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 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);