summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-21 06:13:28 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-21 06:13:28 -0700
commit4605d81ba9ef004e1a0e660ccd5d42717c4c6523 (patch)
tree7924d558b79e5a82ac2899c6ed61ba104e34008e
parent714611bd0ca66e2674d0aee8034dae355add9f57 (diff)
downloadtxr-4605d81ba9ef004e1a0e660ccd5d42717c4c6523.tar.gz
txr-4605d81ba9ef004e1a0e660ccd5d42717c4c6523.tar.bz2
txr-4605d81ba9ef004e1a0e660ccd5d42717c4c6523.zip
lib: remove useless coerce.
* lib.c (string): chk_strdup returns the wchar_t * type already; there is no need to coerce.
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 9a4f4533..e1e53b37 100644
--- a/lib.c
+++ b/lib.c
@@ -4259,7 +4259,7 @@ val string(const wchar_t *str)
{
val obj = make_obj();
obj->st.type = STR;
- obj->st.str = coerce(wchar_t *, chk_strdup(str));
+ obj->st.str = chk_strdup(str);
obj->st.len = nil;
obj->st.alloc = nil;
return obj;