summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-29 18:25:28 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-29 18:25:28 -0700
commit1b891820b5b1e4ed35b87b3c0a040fd289e95801 (patch)
tree2d033ab5be6289433948bc88794f836f05fdbb98 /txr.c
parente257904f353d7cd9bd9119f089cd1ca47c73d6c7 (diff)
downloadtxr-1b891820b5b1e4ed35b87b3c0a040fd289e95801.tar.gz
txr-1b891820b5b1e4ed35b87b3c0a040fd289e95801.tar.bz2
txr-1b891820b5b1e4ed35b87b3c0a040fd289e95801.zip
ffi: pad retval to ffi_arg size on all platforms.
* ffi.c (pad_retval): Define same way regardless of big or little endian. For instance, we don't want to call alloca(1) for a char return value. It could be the case on little endian targets that libffi prepares an entire ffi_arg return value. Even though we just read the low order byte, we still have to prepare enough space for the whole thing.
Diffstat (limited to 'txr.c')
0 files changed, 0 insertions, 0 deletions