summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-29 05:04:30 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-29 05:04:30 -0700
commit7387236f99e102d0415941867c1da36d88be95b3 (patch)
tree4b43884856c1bb9b31d46b6030a8fef8721f48a0
parentf97d109da4c4c7ba9dde853e78ab496a167c98a0 (diff)
downloadtxr-7387236f99e102d0415941867c1da36d88be95b3.tar.gz
txr-7387236f99e102d0415941867c1da36d88be95b3.tar.bz2
txr-7387236f99e102d0415941867c1da36d88be95b3.zip
ffi: fix bool printing as integer type.
* ffi.c (ffi_type_compile): Assign full bool syntax to cloned type, rather than just the argument syntax denoting the base type.
-rw-r--r--ffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi.c b/ffi.c
index 4a2db26d..3f302ef2 100644
--- a/ffi.c
+++ b/ffi.c
@@ -3559,7 +3559,7 @@ val ffi_type_compile(val syntax)
if (tft->eltype || tft->memb != 0)
uw_throwf(error_s, lit("~a: type ~s can't be basis for bool"),
self, tft->syntax, nao);
- tft->syntax = type_syntax;
+ tft->syntax = syntax;
tft->eltype = type;
tft->get = ffi_bool_get;
tft->put = ffi_bool_put;