summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2022-09-24 21:41:02 -0400
committerAnthony Green <green@moxielogic.com>2022-09-24 21:41:02 -0400
commita2473cde0a02c096dc3e0b57f0cb73f598765570 (patch)
treed7b450bd5b74349e2c1137260a31401fe872518b /src
parentf93224d38662a8cdc33ca56fe6f2d5650a86d690 (diff)
downloadlibffi-a2473cde0a02c096dc3e0b57f0cb73f598765570.tar.gz
or1k: All struct args are passed in memory
Diffstat (limited to 'src')
-rw-r--r--src/or1k/ffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or1k/ffi.c b/src/or1k/ffi.c
index c8ed110..9451d4e 100644
--- a/src/or1k/ffi.c
+++ b/src/or1k/ffi.c
@@ -139,7 +139,7 @@ void ffi_call(ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue)
{
ffi_type *at = cif->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);