diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2015-02-12 13:49:02 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-02-18 20:54:13 -0500 |
commit | 7dd48d7af08613255bc95b63f5b6b0f096a98d22 (patch) | |
tree | fb85ab05a011eb6bc23b771569e152410d966811 /src/nvim/regexp.c | |
parent | 690e43b461491507094da8eeb48a92cf2f38b282 (diff) | |
download | rneovim-7dd48d7af08613255bc95b63f5b6b0f096a98d22.tar.gz rneovim-7dd48d7af08613255bc95b63f5b6b0f096a98d22.tar.bz2 rneovim-7dd48d7af08613255bc95b63f5b6b0f096a98d22.zip |
Enable -Wconversion: mark.c.
Refactoring summary:
- MB_STRNICMP: Inlined.
- MB_STRNCMP: Inlined.
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r-- | src/nvim/regexp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index 4af09915d5..8b7033b64b 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -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) { |