diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-05-25 06:25:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-05-25 06:25:48 -0700 |
commit | 29ef365cd0c0931b5b34a5258b036e8d5a966357 (patch) | |
tree | dc16e127f2d375bedefb479d1af4eef017dfd113 /lib.c | |
parent | 5c7a7732e8938b5d127b677f0d42d3a774103112 (diff) | |
download | txr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |