diff options
author | Paul A. Patience <paul@apatience.com> | 2021-09-16 20:06:01 -0400 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-09-17 06:20:34 -0700 |
commit | 1f2e260ecee59377bd8350db8c6cfecc4201ff88 (patch) | |
tree | a521be7a7b52ce623f839b8f8f1caf05f5b4ef28 | |
parent | e6d39b7a1aa2d17c1f1d2eb890714b20f257fb17 (diff) | |
download | txr-1f2e260ecee59377bd8350db8c6cfecc4201ff88.tar.gz txr-1f2e260ecee59377bd8350db8c6cfecc4201ff88.tar.bz2 txr-1f2e260ecee59377bd8350db8c6cfecc4201ff88.zip |
lib: fix self name of cmp-str.
* lib.c (cmp_str): Fix self name and use it in uw_throwf call.
-rw-r--r-- | lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5897,7 +5897,7 @@ val trim_str(val str) val cmp_str(val astr, val bstr) { - val self = lit("bstr"); + val self = lit("cmp-str"); switch (TYPE_PAIR(type(astr), type(bstr))) { case TYPE_PAIR(LIT, LIT): @@ -5934,8 +5934,8 @@ val cmp_str(val astr, val bstr) return zero; } default: - uw_throwf(error_s, lit("cmp-str: invalid operands ~s ~s"), - astr, bstr, nao); + uw_throwf(error_s, lit("~a: invalid operands ~s ~s"), + self, astr, bstr, nao); } } |