diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-13 00:14:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 00:14:46 +0200 |
commit | af9c1e572dc1015b7b8f2a8a09d527f54ca080d3 (patch) | |
tree | a6e3279c3e56e24812644ffed88b7990a5e52244 /src/nvim/mbyte.c | |
parent | e2d3e73748f8dd4a6d7acbfda2d765d1a02dcfb8 (diff) | |
parent | 85aae12a6dea48621ea2d24a946b3e7b86f9014d (diff) | |
download | rneovim-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/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index 37b4af5172..c7408c6260 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -1332,7 +1332,7 @@ bool mb_isalpha(int a) static int utf_strnicmp(const char_u *s1, const char_u *s2, size_t n1, size_t n2) { int c1, c2, cdiff; - char_u buffer[6]; + char buffer[6]; for (;;) { c1 = utf_safe_read_char_adv(&s1, &n1); @@ -1371,10 +1371,10 @@ static int utf_strnicmp(const char_u *s1, const char_u *s2, size_t n1, size_t n2 if (c1 != -1 && c2 == -1) { n1 = utf_char2bytes(utf_fold(c1), (char *)buffer); - s1 = buffer; + s1 = (char_u *)buffer; } else if (c2 != -1 && c1 == -1) { n2 = utf_char2bytes(utf_fold(c2), (char *)buffer); - s2 = buffer; + s2 = (char_u *)buffer; } while (n1 > 0 && n2 > 0 && *s1 != NUL && *s2 != NUL) { |