aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/typval_encode.h
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-13 00:14:46 +0200
committerGitHub <noreply@github.com>2022-05-13 00:14:46 +0200
commitaf9c1e572dc1015b7b8f2a8a09d527f54ca080d3 (patch)
treea6e3279c3e56e24812644ffed88b7990a5e52244 /src/nvim/eval/typval_encode.h
parente2d3e73748f8dd4a6d7acbfda2d765d1a02dcfb8 (diff)
parent85aae12a6dea48621ea2d24a946b3e7b86f9014d (diff)
downloadrneovim-af9c1e572dc1015b7b8f2a8a09d527f54ca080d3.tar.gz
rneovim-af9c1e572dc1015b7b8f2a8a09d527f54ca080d3.tar.bz2
rneovim-af9c1e572dc1015b7b8f2a8a09d527f54ca080d3.zip
Merge pull request #18489 from dundargoc/refactor/remove-char_u
refactor: replace char_u variables and functions with char
Diffstat (limited to 'src/nvim/eval/typval_encode.h')
-rw-r--r--src/nvim/eval/typval_encode.h4
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