Ronald Oussoren <ronaldousso...@mac.com> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38628> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com