summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-05-25 06:25:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-05-25 06:25:48 -0700
commit29ef365cd0c0931b5b34a5258b036e8d5a966357 (patch)
treedc16e127f2d375bedefb479d1af4eef017dfd113 /lib.c
parent5c7a7732e8938b5d127b677f0d42d3a774103112 (diff)
downloadtxr-29ef365cd0c0931b5b34a5258b036e8d5a966357.tar.gz
txr-29ef365cd0c0931b5b34a5258b036e8d5a966357.tar.bz2
txr-29ef365cd0c0931b5b34a5258b036e8d5a966357.zip
search/rsearch: wrong object in bad key diagnostic.
* lib.c (search_list, rsearch_list): When the key has a bad type, don't report the seq object in its place.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 65bee46b..7f0d04da 100644
--- a/lib.c
+++ b/lib.c
@@ -10820,7 +10820,7 @@ static val search_list(val seq, val key, val testfun, val keyfun)
}
break;
default:
- type_mismatch(lit("search: ~s is not a sequence"), seq, nao);
+ type_mismatch(lit("search: ~s is not a sequence"), key, nao);
}
return nil;
@@ -10894,7 +10894,7 @@ static val rsearch_list(val seq, val key, val testfun, val keyfun)
}
break;
default:
- type_mismatch(lit("rsearch: ~s is not a sequence"), seq, nao);
+ type_mismatch(lit("rsearch: ~s is not a sequence"), key, nao);
}
return found;