diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-12-15 16:10:31 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-12-15 16:10:31 -0800 |
commit | 8759015d7efe346fc22febcc7f429cfd09bdac97 (patch) | |
tree | fbe6926c1e38e85bde23e5309c12d1e9d826bd40 /lib.c | |
parent | 13c9609500c02a10fbea9cd833615a4ceee7dd43 (diff) | |
download | txr-8759015d7efe346fc22febcc7f429cfd09bdac97.tar.gz txr-8759015d7efe346fc22febcc7f429cfd09bdac97.tar.bz2 txr-8759015d7efe346fc22febcc7f429cfd09bdac97.zip |
* lib.c (appendv): bugfix: wrong way test.
(vector_list): Wrong zero used, resulting in vector(nil) being called.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -373,7 +373,7 @@ val appendv(val lists) for (; lists; lists = cdr(lists)) { val item = car(lists); - if (listp(*ptail)) + if (!listp(*ptail)) uw_throwf(error_s, lit("append: ~s is not a list"), *ptail, nao); list_collect_append(ptail, item); } @@ -2357,7 +2357,7 @@ val size_vec(val vec) val vector_list(val list) { - val vec = vector(0); + val vec = vector(zero); if (!listp(list)) uw_throwf(error_s, lit("vector_list: list expected, not ~s"), list, nao); |