mirror of
https://github.com/python/cpython.git
synced 2026-01-04 06:22:20 +00:00
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.
This commit is contained in:
parent
0455214f1c
commit
db3bfdf141
1 changed files with 4 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue