From db3bfdf141b78c616c256d3f3dd217bec0ea9371 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Fri, 4 May 2007 08:20:41 +0000 Subject: On 64-bit Windows, ffi_arg must be 8 bytes long. This fixes the remaining crashes in the ctypes tests, when functions return float or double types. --- Modules/_ctypes/libffi_msvc/ffitarget.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/_ctypes/libffi_msvc/ffitarget.h b/Modules/_ctypes/libffi_msvc/ffitarget.h index 0da79d4..85f5ee8 100644 --- a/Modules/_ctypes/libffi_msvc/ffitarget.h +++ b/Modules/_ctypes/libffi_msvc/ffitarget.h @@ -36,7 +36,11 @@ /* ---- Generic type definitions ----------------------------------------- */ #ifndef LIBFFI_ASM +#ifndef _WIN64 typedef unsigned long ffi_arg; +#else +typedef unsigned __int64 ffi_arg; +#endif typedef signed long ffi_sarg; typedef enum ffi_abi { -- cgit v0.12