summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-03-02 19:09:12 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-03-02 19:09:12 -0800
commitb5d92c7b65b7c8efd3c62da070b52326989dfe0b (patch)
tree66ef85f0d4e7aa56647971c8df9f07500461df73 /lib.c
parent96c884c1754058cbacd709be0de17559c1a3a2a6 (diff)
downloadtxr-b5d92c7b65b7c8efd3c62da070b52326989dfe0b.tar.gz
txr-b5d92c7b65b7c8efd3c62da070b52326989dfe0b.tar.bz2
txr-b5d92c7b65b7c8efd3c62da070b52326989dfe0b.zip
list-vec: replace int type.
* lib.c (list_vec): use ucnum rather than int for the index and length variables.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index a1eb5881..7875c7d2 100644
--- a/lib.c
+++ b/lib.c
@@ -9682,11 +9682,11 @@ val list_vec(val vec)
{
val self = lit("list-vec");
list_collect_decl (list, ptail);
- int i, len;
+ ucnum i, len;
type_check(self, vec, VEC);
- len = c_num(vec->v.vec[vec_length], self);
+ len = c_unum(vec->v.vec[vec_length], self);
for (i = 0; i < len; i++)
ptail = list_collect(ptail, vec->v.vec[i]);