mirror of https://github.com/python/cpython
gh-110190: Fix ctypes structs with array on Windows ARM64 (GH-114753)
This commit is contained in:
parent
dc4cd2c9ba
commit
a06b606462
|
@ -0,0 +1 @@
|
||||||
|
Fix ctypes structs with array on Windows ARM64 platform by setting ``MAX_STRUCT_SIZE`` to 32 in stgdict. Patch by Diego Russo
|
|
@ -707,7 +707,7 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct
|
||||||
/*
|
/*
|
||||||
* The value of MAX_STRUCT_SIZE depends on the platform Python is running on.
|
* The value of MAX_STRUCT_SIZE depends on the platform Python is running on.
|
||||||
*/
|
*/
|
||||||
#if defined(__aarch64__) || defined(__arm__)
|
#if defined(__aarch64__) || defined(__arm__) || defined(_M_ARM64)
|
||||||
# define MAX_STRUCT_SIZE 32
|
# define MAX_STRUCT_SIZE 32
|
||||||
#elif defined(__powerpc64__)
|
#elif defined(__powerpc64__)
|
||||||
# define MAX_STRUCT_SIZE 64
|
# define MAX_STRUCT_SIZE 64
|
||||||
|
|
Loading…
Reference in New Issue