diff options
author | Thomas Heller <theller@ctypes.org> | 2007-05-04 08:20:41 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-05-04 08:20:41 (GMT) |
commit | db3bfdf141b78c616c256d3f3dd217bec0ea9371 (patch) | |
tree | eaf8775c75229783476525b92bdb2b8af462d0b9 /Modules | |
parent | 0455214f1cb91027175942c65ac60735322b7645 (diff) | |
download | cpython-db3bfdf141b78c616c256d3f3dd217bec0ea9371.zip cpython-db3bfdf141b78c616c256d3f3dd217bec0ea9371.tar.gz cpython-db3bfdf141b78c616c256d3f3dd217bec0ea9371.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/libffi_msvc/ffitarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |