From 8cc7ea55cdac358b4520d12e86c5882ba4c00824 Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Tue, 21 Jul 2020 20:14:11 +0200 Subject: next fix, for win64 --- c/libffi_msvc/ffi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c') diff --git a/c/libffi_msvc/ffi.c b/c/libffi_msvc/ffi.c index dab2b50..8a56c87 100644 --- a/c/libffi_msvc/ffi.c +++ b/c/libffi_msvc/ffi.c @@ -342,6 +342,8 @@ ffi_closure_SYSV (ffi_closure *closure, char *argp) result types except for floats; we have to 'mov xmm0, rax' in the caller to correct this. */ + if (rtype == FFI_TYPE_STRUCT) + return resp; return *(void **)resp; #endif } -- cgit v1.2.1