Skip to content

Commit

Permalink
pythongh-110190: Fix ctypes structs with array on SPARC (pythonGH-118233
Browse files Browse the repository at this point in the history
)

Signed-off-by: Michał Górny <mgorny@gentoo.org>
  • Loading branch information
kulikjak authored and mgorny committed Sep 19, 2024
1 parent 96d5bd9 commit 4979be0
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__) || defined(_M_ARM64)
#if defined(__aarch64__) || defined(__arm__) || defined(_M_ARM64) || defined(__sparc__)
# define MAX_STRUCT_SIZE 32
#elif defined(__powerpc64__)
# define MAX_STRUCT_SIZE 64
Expand Down

0 comments on commit 4979be0

Please sign in to comment.