summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-12 21:50:49 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-12 21:50:49 -0700
commitf073dc1201ae0b4c9cebc430b7bde52d1cc2b170 (patch)
tree2e2a00b5b5d2e0e7f673a12516d2d10c75d73ab8 /lib.c
parent8bdbe5bfa71c52d6ee40410f6f4f1d75e4e2ccb0 (diff)
downloadtxr-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 951d540e..07f733a7 100644
--- a/lib.c
+++ b/lib.c
@@ -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);