aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-01 10:25:27 +0200
committerGitHub <noreply@github.com>2022-09-01 10:25:27 +0200
commit48ca1d4ce8c0a142e90e06b3cd37f1315c5eb715 (patch)
treee792fd9dfe30eebbb6525a285d071d4f719d38ad /src/nvim/spell.c
parentd9a873f278272bf1311179e73ae0d7fad2c00f81 (diff)
parentbd51ac2a347c0a3efb64e4b09400b7314286844c (diff)
downloadrneovim-48ca1d4ce8c0a142e90e06b3cd37f1315c5eb715.tar.gz
rneovim-48ca1d4ce8c0a142e90e06b3cd37f1315c5eb715.tar.bz2
rneovim-48ca1d4ce8c0a142e90e06b3cd37f1315c5eb715.zip
Merge pull request #20022 from dundargoc/refactor/char_u/6
refactor: replace char_u with char 6
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) {