From ee1263f7d43bd29b15fc72c4d9520a824e8004df Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Thu, 29 Jul 2021 17:46:17 -0400 Subject: Fix 'type'-o --- src/moxie/ffi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.1