Skip to content

Commit

Permalink
pythongh-110190: Fix ctypes structs with array on Windows ARM64 (pyth…
Browse files Browse the repository at this point in the history
…onGH-114753)

(cherry picked from commit a06b606)

Co-authored-by: Diego Russo <diego.russo@arm.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
  • Loading branch information
2 people authored and mgorny committed Sep 19, 2024
1 parent 6fe4870 commit 24a1213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_ctypes/stgdict.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct
/*
* 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
#elif defined(__powerpc64__)
# define MAX_STRUCT_SIZE 64
Expand Down

0 comments on commit 24a1213

Please sign in to comment.