summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-11-18 07:41:00 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-11-18 07:41:00 -0800
commit0ebdd100259f54adec5321a0ce98926e75666319 (patch)
tree7a9e55851829b07dd8b1547ce91ddee34b553371
parent1258fb3167f95cbd5d122b2b1734c08afdf963cb (diff)
downloadtxr-0ebdd100259f54adec5321a0ce98926e75666319.tar.gz
txr-0ebdd100259f54adec5321a0ce98926e75666319.tar.bz2
txr-0ebdd100259f54adec5321a0ce98926e75666319.zip
identity*: fix wrong argument index type.
* lib.c (identity_star): The args_more function requires an index which is a cnum, not int.
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 57ea4128..5cd5be4f 100644
--- a/lib.c
+++ b/lib.c
@@ -167,7 +167,7 @@ val identity(val obj)
static val identity_star(varg args)
{
- int index = 0;
+ cnum index = 0;
if (args_more(args, index))
return args_get(args, &index);
return nil;