summaryrefslogtreecommitdiffstats
path: root/ffi.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-12-16 13:10:42 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-12-16 13:10:42 -0800
commitb8f8be2738e304f1b857b0c1be7abe77f1c622e7 (patch)
tree5ee89a1980126db2052bc100a4bc9d07af79c580 /ffi.c
parentb30f8596fd90fd87283980410838ceaa86b4e148 (diff)
downloadtxr-b8f8be2738e304f1b857b0c1be7abe77f1c622e7.tar.gz
txr-b8f8be2738e304f1b857b0c1be7abe77f1c622e7.tar.bz2
txr-b8f8be2738e304f1b857b0c1be7abe77f1c622e7.zip
ffi: bug: zchar not handled in array out semantics.
* ffi.c (ffi_array_out): Add missing zchar case.
Diffstat (limited to 'ffi.c')
-rw-r--r--ffi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffi.c b/ffi.c
index a7ccfe28..0fe1e92e 100644
--- a/ffi.c
+++ b/ffi.c
@@ -2473,6 +2473,7 @@ static void ffi_array_out(struct txr_ffi_type *tft, int copy, val vec,
if (tft->ch_conv != conv_none && stringp(vec)) {
switch (tft->ch_conv) {
case conv_char:
+ case conv_zchar:
ffi_char_array_put(tft, vec, dst, tft->nelem);
break;
case conv_wchar: