mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
Enable -Wconversion: mark.c.
Refactoring summary: - MB_STRNICMP: Inlined. - MB_STRNCMP: Inlined.
This commit is contained in:

committed by
Justin M. Keyes

parent
690e43b461
commit
7dd48d7af0
@@ -6226,8 +6226,10 @@ static int cstrncmp(char_u *s1, char_u *s2, int *n)
|
||||
|
||||
if (!ireg_ic)
|
||||
result = STRNCMP(s1, s2, *n);
|
||||
else
|
||||
result = MB_STRNICMP(s1, s2, *n);
|
||||
else {
|
||||
assert(*n >= 0);
|
||||
result = mb_strnicmp(s1, s2, (size_t)*n);
|
||||
}
|
||||
|
||||
/* if it failed and it's utf8 and we want to combineignore: */
|
||||
if (result != 0 && enc_utf8 && ireg_icombine) {
|
||||
|
Reference in New Issue
Block a user