8000 gh-110190: Fix ctypes structs with array on SPARC (GH-118233) · gentoo/cpython@528c0b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 528c0b0

Browse files
kulikjakmgorny
authored andcommitted
pythongh-110190: Fix ctypes structs with array on SPARC (pythonGH-118233)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
1 parent 24a1213 commit 528c0b0

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
@@ -656,7 +656,7 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct
656656
/*
657657
* The value of MAX_STRUCT_SIZE depends on the platform Python is running on.
658658
*/
659-
#if defined(__aarch64__) || defined(__arm__) || defined(_M_ARM64)
659+
#if defined(__aarch64__) || defined(__arm__) || defined(_M_ARM64) || defined(__sparc__)
660660
# define MAX_STRUCT_SIZE 32
661661
#elif defined(__powerpc64__)
662662
# define MAX_STRUCT_SIZE 64

0 commit comments

Comments
 (0)
0