diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-26 06:24:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-26 06:24:48 -0700 |
commit | 0a562b428c0fb9651fcfe03ae0d6e40262e3695a (patch) | |
tree | 53423788d9c29bad222a573a675af4c288d88c57 | |
parent | ed04ac09b158d30cee64c22bf7c38bb456867c15 (diff) | |
download | txr-0a562b428c0fb9651fcfe03ae0d6e40262e3695a.tar.gz txr-0a562b428c0fb9651fcfe03ae0d6e40262e3695a.tar.bz2 txr-0a562b428c0fb9651fcfe03ae0d6e40262e3695a.zip |
ffi: bugfix: null-terminated zarray in semantics.
* ffi.c (ffi_varray_null_term_in): Pass zero to replace
rather than 0, which corresponds to nil and is interpreted
as a list by replace.
-rw-r--r-- | ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2544,7 +2544,7 @@ static val ffi_varray_null_term_in(struct txr_ffi_type *tft, int copy, mem_t *sr offs += elsize; } - return replace(vec_in, vec, 0, length_vec(vec)); + return replace(vec_in, vec, zero, length_vec(vec)); } static val ffi_varray_null_term_get(struct txr_ffi_type *tft, mem_t *src, |