From: Thomas Heller Date: Fri, 4 May 2007 08:20:41 +0000 (+0000) Subject: On 64-bit Windows, ffi_arg must be 8 bytes long. This fixes the X-Git-Tag: v2.6a1~1773 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db3bfdf141b78c616c256d3f3dd217bec0ea9371;p=python 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. --- diff --git a/Modules/_ctypes/libffi_msvc/ffitarget.h b/Modules/_ctypes/libffi_msvc/ffitarget.h index 0da79d4c1a..85f5ee81bb 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 {