diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-29 05:04:30 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-29 05:04:30 -0700 |
commit | 7387236f99e102d0415941867c1da36d88be95b3 (patch) | |
tree | 4b43884856c1bb9b31d46b6030a8fef8721f48a0 | |
parent | f97d109da4c4c7ba9dde853e78ab496a167c98a0 (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |