mirror of
https://github.com/neovim/neovim.git
synced 2025-10-18 07:41:51 +00:00
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user