diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-11-18 07:41:00 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-11-18 07:41:00 -0800 |
commit | b4357b3aa86c3807373ae6363821bf468bb8b30e (patch) | |
tree | 7a9e55851829b07dd8b1547ce91ddee34b553371 /lib.c | |
parent | 215793cc98d4fca1c5d97ae622fcc0672b22518b (diff) | |
download | txr-b4357b3aa86c3807373ae6363821bf468bb8b30e.tar.gz txr-b4357b3aa86c3807373ae6363821bf468bb8b30e.tar.bz2 txr-b4357b3aa86c3807373ae6363821bf468bb8b30e.zip |
identity*: fix wrong argument index type.
* lib.c (identity_star): The args_more function requires
an index which is a cnum, not int.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |