mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-110190: Fix ctypes structs with array on SPARC (GH-118233)
This commit is contained in:
parent
3aff1d0260
commit
f15fff3f13
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
Fix ctypes structs with array on SPARC by setting ``MAX_STRUCT_SIZE`` to 32
|
||||
in stgdict. Patch by Jakub Kulik
|
|
@ -433,7 +433,7 @@ PyCStructUnionType_update_stginfo(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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue