diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-07-22 18:00:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 18:00:55 +0800 |
commit | d2efcbf2dca6c2899ba0a1be7fc10dbf3f112d26 (patch) | |
tree | 5ccd5999192f20426f31a196e4a9b239211c1e94 /src/nvim/regexp.c | |
parent | 4b57ff77febbe6073bc4c5c3a45b0ad0d5d40e6c (diff) | |
download | rneovim-d2efcbf2dca6c2899ba0a1be7fc10dbf3f112d26.tar.gz rneovim-d2efcbf2dca6c2899ba0a1be7fc10dbf3f112d26.tar.bz2 rneovim-d2efcbf2dca6c2899ba0a1be7fc10dbf3f112d26.zip |
refactor: remove some (const char **) casts (#24423)
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r-- | src/nvim/regexp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index d08af2de6c..5a737df006 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -1412,7 +1412,7 @@ static int cstrncmp(char *s1, char *s2, int *n) // if it failed and it's utf8 and we want to combineignore: if (result != 0 && rex.reg_icombine) { - char *str1, *str2; + const char *str1, *str2; int c1, c2, c11, c12; int junk; @@ -1422,8 +1422,8 @@ static int cstrncmp(char *s1, char *s2, int *n) str2 = s2; c1 = c2 = 0; while ((int)(str1 - s1) < *n) { - c1 = mb_ptr2char_adv((const char **)&str1); - c2 = mb_ptr2char_adv((const char **)&str2); + c1 = mb_ptr2char_adv(&str1); + c2 = mb_ptr2char_adv(&str2); // decompose the character if necessary, into 'base' characters // because I don't care about Arabic, I will hard-code the Hebrew |