diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-29 18:25:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-29 18:25:28 -0700 |
commit | 1b891820b5b1e4ed35b87b3c0a040fd289e95801 (patch) | |
tree | 2d033ab5be6289433948bc88794f836f05fdbb98 /txr.c | |
parent | e257904f353d7cd9bd9119f089cd1ca47c73d6c7 (diff) | |
download | txr-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