[Python-checkins] r55117 - python/trunk/Modules/_ctypes/libffi_msvc/ffitarget.h

thomas.heller python-checkins at python.org
Fri May 4 10:20:47 CEST 2007


Author: thomas.heller
Date: Fri May 4 10:20:41 2007
New Revision: 55117
Modified:
 python/trunk/Modules/_ctypes/libffi_msvc/ffitarget.h
Log:
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.
Modified: python/trunk/Modules/_ctypes/libffi_msvc/ffitarget.h
==============================================================================
--- python/trunk/Modules/_ctypes/libffi_msvc/ffitarget.h	(original)
+++ python/trunk/Modules/_ctypes/libffi_msvc/ffitarget.h	Fri May 4 10:20:41 2007
@@ -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 {


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /