Emscripten: Don't unbox single element structs if they are larger than 16 bytes ...
authorHood Chatham <roberthoodchatham@gmail.com>
Thu, 15 Feb 2024 12:51:12 +0000 (04:51 -0800)
committerGitHub <noreply@github.com>
Thu, 15 Feb 2024 12:51:12 +0000 (07:51 -0500)
commitb3091029ed85339c856224c243826022ae93c041
tree6512413484166f4d5356ee0330a00e7b5725cb10
parent98881ecb8eec6d5f2beaaced96d9f625b0dee499
Emscripten: Don't unbox single element structs if they are larger than 16 bytes (#818)

This arguably is a compensation for a Python ctypes bug / strange behavior
described here:
https://github.com/python/cpython/blob/a16a9f978f42b8a09297c1efbf33877f6388c403/Modules/_ctypes/stgdict.c#L718-L779

If a struct is larger than 16 bytes, Python does not bother to accurately report
its contents figuring that we don't need to know.
src/wasm32/ffi.c