From b4357b3aa86c3807373ae6363821bf468bb8b30e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 18 Nov 2019 07:41:00 -0800 Subject: identity*: fix wrong argument index type. * lib.c (identity_star): The args_more function requires an index which is a cnum, not int. --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib.c') 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; -- cgit v1.2.3