]> granicus.if.org Git - python/commitdiff
On 64-bit Windows, ffi_arg must be 8 bytes long. This fixes the
authorThomas Heller <theller@ctypes.org>
Fri, 4 May 2007 08:20:41 +0000 (08:20 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 4 May 2007 08:20:41 +0000 (08:20 +0000)
remaining crashes in the ctypes tests, when functions return float or
double types.

Modules/_ctypes/libffi_msvc/ffitarget.h

index 0da79d4c1ad700f5ad9e75d4fdae098967754fe3..85f5ee81bbe6f5e852ae452eb41cb8569dfb966a 100644 (file)
 /* ---- 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 {