summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2021-07-29 17:46:17 -0400
committerAnthony Green <green@moxielogic.com>2021-07-29 17:46:17 -0400
commitee1263f7d43bd29b15fc72c4d9520a824e8004df (patch)
tree6b344146bbcce9f72320d5347e0d2c62f2ac70c4 /src
parent86d5ecc5e84fbbc79fcff6a307310630d9d68549 (diff)
downloadlibffi-ee1263f7d43bd29b15fc72c4d9520a824e8004df.tar.gz
Fix 'type'-o
Diffstat (limited to 'src')
-rw-r--r--src/moxie/ffi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/moxie/ffi.c b/src/moxie/ffi.c
index 696581a..1a65660 100644
--- a/src/moxie/ffi.c
+++ b/src/moxie/ffi.c
@@ -212,10 +212,10 @@ void ffi_closure_eabi (unsigned arg1, unsigned arg2, unsigned arg3,
break;
case FFI_TYPE_STRUCT:
{
- if (arg_types[i]->type->size > 4)
+ if (arg_types[i]->size > 4)
{
- void *copy = alloca(arg_types[i]->type->size);
- memcpy(copy, *(void**)ptr, arg_types[i]->type->size);
+ void *copy = alloca(arg_types[i]->size);
+ memcpy(copy, *(void**)ptr, arg_types[i]->size);
avalue[i] = copy;
}
else