Message374726
Thanks for the code reference.
I'm not a ctypes expert, but do maintain another project using libffi. The comment in stgdict.c is correct, and that code is used for all platforms.
However, code to embed arrays into a struct (as described int the comment) is only used for structs with a size smaller than 16 bytes (MAX_STRUCT_SIZE), which AFAIK is not correct. My other project does something similar, but for all struct sizes.
That said, I haven't studied the ctypes code in detail yet.
As a quick test you could check if increasing MAX_STRUCT_SIZE to (say) 32 fixes this particular example. |
|
Date |
User |
Action |
Args |
2020-08-03 07:35:24 | ronaldoussoren | set | recipients:
+ ronaldoussoren, David.Edelsohn, Michael.Felt, Ayappan, BTaskaya, T.Rex |
2020-08-03 07:35:24 | ronaldoussoren | set | messageid: <1596440124.61.0.561625297783.issue38628@roundup.psfhosted.org> |
2020-08-03 07:35:24 | ronaldoussoren | link | issue38628 messages |
2020-08-03 07:35:24 | ronaldoussoren | create | |
|