summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-06-06 06:28:12 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-06-06 06:28:12 -0700
commit0aecd0d378734e8dbbfb1fd0cf9767b4331d7ec6 (patch)
tree1a89eaeb51541ed6b6719c7abb5616d7c9e9f7ac /lib.c
parent6559d3bab6597d4805ca604103c107032d6b94e9 (diff)
downloadtxr-0aecd0d378734e8dbbfb1fd0cf9767b4331d7ec6.tar.gz
txr-0aecd0d378734e8dbbfb1fd0cf9767b4331d7ec6.tar.bz2
txr-0aecd0d378734e8dbbfb1fd0cf9767b4331d7ec6.zip
Fix useless tolist over COBJ objects.
* lib.c (tolist): Use mapcar_listout, to avoid the conversion of the resulting list to the object's type, making this whole operation useless!
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index a547973c..f6e740fd 100644
--- a/lib.c
+++ b/lib.c
@@ -706,7 +706,7 @@ val tolist(val seq)
case LSTR:
return list_str(seq);
case COBJ:
- return mapcar(identity_f, seq);
+ return mapcar_listout(identity_f, seq);
case NIL:
case CONS:
case LCONS: