diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-08 14:43:16 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-11 23:19:57 +0200 |
commit | 85aae12a6dea48621ea2d24a946b3e7b86f9014d (patch) | |
tree | d9d45a2bdde3b462f58d98b88694bad0183c2b16 /src/nvim/eval/typval_encode.h | |
parent | 5359be78935dc639c481d74f010fe133dd40290c (diff) | |
download | rneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.tar.gz rneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.tar.bz2 rneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/eval/typval_encode.h')
-rw-r--r-- | src/nvim/eval/typval_encode.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/eval/typval_encode.h b/src/nvim/eval/typval_encode.h index d5cf431870..ed70ba87ec 100644 --- a/src/nvim/eval/typval_encode.h +++ b/src/nvim/eval/typval_encode.h @@ -85,9 +85,7 @@ static inline size_t tv_strlen(const typval_T *const tv) static inline size_t tv_strlen(const typval_T *const tv) { assert(tv->v_type == VAR_STRING); - return (tv->vval.v_string == NULL - ? 0 - : strlen((char *)tv->vval.v_string)); + return (tv->vval.v_string == NULL ? 0 : strlen(tv->vval.v_string)); } /// Code for checking whether container references itself |