diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-21 06:13:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-21 06:13:28 -0700 |
commit | 4605d81ba9ef004e1a0e660ccd5d42717c4c6523 (patch) | |
tree | 7924d558b79e5a82ac2899c6ed61ba104e34008e | |
parent | 714611bd0ca66e2674d0aee8034dae355add9f57 (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |