aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-08-26 23:11:25 +0200
committerdundargoc <gocdundar@gmail.com>2022-08-31 21:17:10 +0200
commitbd51ac2a347c0a3efb64e4b09400b7314286844c (patch)
treed2ad8f38ee9cbebfa539c309b79ed09c57f25d1c /src/nvim/spell.c
parentf078a3453ae479e4d6f88f874e8d282d63c798a3 (diff)
downloadrneovim-bd51ac2a347c0a3efb64e4b09400b7314286844c.tar.gz
rneovim-bd51ac2a347c0a3efb64e4b09400b7314286844c.tar.bz2
rneovim-bd51ac2a347c0a3efb64e4b09400b7314286844c.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r--src/nvim/spell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index d8bc4b22c2..7c05c9fe53 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -3289,7 +3289,7 @@ void spell_dump_compl(char_u *pat, int ic, Direction *dir, int dumpflags_arg)
// ignore case...
assert(depth >= 0);
if (depth <= patlen
- && mb_strnicmp(word, pat, (size_t)depth) != 0) {
+ && mb_strnicmp((char *)word, (char *)pat, (size_t)depth) != 0) {
depth--;
}
}
@@ -3371,7 +3371,7 @@ static void dump_word(slang_T *slang, char_u *word, char_u *pat, Direction *dir,
ml_append(lnum, (char *)p, (colnr_T)0, false);
} else if (((dumpflags & DUMPFLAG_ICASE)
- ? mb_strnicmp(p, pat, STRLEN(pat)) == 0
+ ? mb_strnicmp((char *)p, (char *)pat, STRLEN(pat)) == 0
: STRNCMP(p, pat, STRLEN(pat)) == 0)
&& ins_compl_add_infercase(p, (int)STRLEN(p),
p_ic, NULL, *dir, false) == OK) {