Merge pull request #20022 from dundargoc/refactor/char_u/6

refactor: replace char_u with char 6
This commit is contained in:
bfredl
2022-09-01 10:25:27 +02:00
committed by GitHub
26 changed files with 492 additions and 509 deletions

View File

@@ -1504,7 +1504,7 @@ int search_for_exact_line(buf_T *buf, pos_T *pos, Direction dir, char_u *pat)
} else if (*p != NUL) { // Ignore empty lines.
// Expanding lines or words.
assert(ins_compl_len() >= 0);
if ((p_ic ? mb_strnicmp(p, pat, (size_t)ins_compl_len())
if ((p_ic ? mb_strnicmp((char *)p, (char *)pat, (size_t)ins_compl_len())
: STRNCMP(p, pat, ins_compl_len())) == 0) {
return OK;
}
@@ -3791,7 +3791,7 @@ search_line:
// compare the first "len" chars from "ptr"
startp = (char_u *)skipwhite((char *)p);
if (p_ic) {
matched = !mb_strnicmp(startp, ptr, len);
matched = !mb_strnicmp((char *)startp, (char *)ptr, len);
} else {
matched = !STRNCMP(startp, ptr, len);
}