diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-04 18:27:22 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-05 18:10:46 +0200 |
commit | 9a671e6a24243a5ff2879599d91ab5aec8b4e77d (patch) | |
tree | 703693c3591ed6b8881ed965f7f2ed2394a29ce6 /src/nvim/mbyte.c | |
parent | 82c7a82c3585100e73e154c49e3e002b7dc35437 (diff) | |
download | rneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.tar.gz rneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.tar.bz2 rneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index 10744a86dc..6dbbb17da9 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -562,11 +562,11 @@ int utf_ptr2cells_len(const char_u *p, int size) /// @param str The source string, may not be NULL, must be a NUL-terminated /// string. /// @return The number of cells occupied by string `str` -size_t mb_string2cells(const char_u *str) +size_t mb_string2cells(const char *str) { size_t clen = 0; - for (const char_u *p = str; *p != NUL; p += utfc_ptr2len(p)) { + for (const char_u *p = (char_u *)str; *p != NUL; p += utfc_ptr2len(p)) { clen += utf_ptr2cells(p); } |