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 | 221f7de6d4eed51c1e5d29a1cb3000f94936c2ff (patch) | |
tree | 7924d558b79e5a82ac2899c6ed61ba104e34008e | |
parent | c9206f343e7bc227db054472abd3ee1c0b2507d3 (diff) | |
download | txr-221f7de6d4eed51c1e5d29a1cb3000f94936c2ff.tar.gz txr-221f7de6d4eed51c1e5d29a1cb3000f94936c2ff.tar.bz2 txr-221f7de6d4eed51c1e5d29a1cb3000f94936c2ff.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; |