diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-02-13 18:37:02 +0000 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-02-13 18:37:02 +0000 |
commit | 62c7ddbe6a6b8ec40a03ab12823688c2aafc8a34 (patch) | |
tree | f2276fbf5c57e09d17398dba6bee2d5af17ba444 | |
parent | a3ff9557c6dfa6477d979028e716b331ad6ff2d7 (diff) | |
download | txr-62c7ddbe6a6b8ec40a03ab12823688c2aafc8a34.tar.gz txr-62c7ddbe6a6b8ec40a03ab12823688c2aafc8a34.tar.bz2 txr-62c7ddbe6a6b8ec40a03ab12823688c2aafc8a34.zip |
ffi: big endian: broken be-int16 closure return.
* ffi.c (ffi_be_i16_rput): We need to memset the remaining
parts of the 64 bit word to 0, like in all the other
ffi_be_xxx_put functions that are less than 64 bits wide. Also
removing the (void) tft cast is removed since tft is used.
-rw-r--r-- | ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2131,7 +2131,7 @@ static val ffi_wchar_rget(struct txr_ffi_type *tft, mem_t *src, val self) static void ffi_be_i16_rput(struct txr_ffi_type *tft, val n, mem_t *dst, val self) { - (void) tft; + memset(dst, 0, 6); ffi_be_i16_put(tft, n, dst + 6, self); } |