From 4605d81ba9ef004e1a0e660ccd5d42717c4c6523 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 21 Jun 2021 06:13:28 -0700 Subject: lib: remove useless coerce. * lib.c (string): chk_strdup returns the wchar_t * type already; there is no need to coerce. --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib.c') 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; -- cgit v1.2.3