diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-12 21:50:49 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-12 21:50:49 -0700 |
commit | f073dc1201ae0b4c9cebc430b7bde52d1cc2b170 (patch) | |
tree | 2e2a00b5b5d2e0e7f673a12516d2d10c75d73ab8 /lib.c | |
parent | 8bdbe5bfa71c52d6ee40410f6f4f1d75e4e2ccb0 (diff) | |
download | txr-f073dc1201ae0b4c9cebc430b7bde52d1cc2b170.tar.gz txr-f073dc1201ae0b4c9cebc430b7bde52d1cc2b170.tar.bz2 txr-f073dc1201ae0b4c9cebc430b7bde52d1cc2b170.zip |
Follow up on C++ diagnostics.
* ffi.c (ffi_generic_sbit_put, fi_generic_sbit_get,
ffi_generic_ubit_put, fi_generic_ubit_get): Add needed
coerce from zalloca to mem_t *.
(make_ffi_type_struct): Fix signed/unsigned comparison.
* lib.c (vector): Fix signed/unsigned comparison.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6718,7 +6718,7 @@ val dupl(val fun) val vector(val length, val initval) { - int i; + unsigned i; ucnum len = c_unum(length); ucnum alloc_plus = len + 2; ucnum size = if3(alloc_plus > len, alloc_plus, -1); |