Skip to content

Commit a125b13

Browse files
committed
gh-110190: Fix ctypes structs with array on SPARC
1 parent 83235f7 commit a125b13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ctypes/stgdict.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ PyCStructUnionType_update_stginfo(PyObject *type, PyObject *fields, int isStruct
606606
/*
607607
* The value of MAX_STRUCT_SIZE depends on the platform Python is running on.
608608
*/
609-
#if defined(__aarch64__) || defined(__arm__) || defined(_M_ARM64)
609+
#if defined(__aarch64__) || defined(__arm__) || defined(_M_ARM64) || defined(__sparc__)
610610
# define MAX_STRUCT_SIZE 32
611611
#elif defined(__powerpc64__)
612612
# define MAX_STRUCT_SIZE 64

0 commit comments

Comments
 (0)