diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-16 14:24:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 14:24:29 +0200 |
commit | b9b5577d6d8e07d1e39020c8fc05f817f2e81c66 (patch) | |
tree | 0d4b5f8b4db1ad7b4cd6d93c89d149e9e2d84570 /src/nvim/regexp_bt.c | |
parent | 14d653b421d3ee4e0d641e45e67dafe43809e502 (diff) | |
parent | f0148de7907ec297647816d51c79745be729439e (diff) | |
download | rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.tar.gz rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.tar.bz2 rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.zip |
Merge pull request #18578 from dundargoc/refactor/remove-char_u
refactor: remove char_u
Diffstat (limited to 'src/nvim/regexp_bt.c')
-rw-r--r-- | src/nvim/regexp_bt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/regexp_bt.c b/src/nvim/regexp_bt.c index e5964e6f88..c13c2c6832 100644 --- a/src/nvim/regexp_bt.c +++ b/src/nvim/regexp_bt.c @@ -1802,7 +1802,7 @@ static char_u *regatom(int *flagp) case Magic('L'): case Magic('u'): case Magic('U'): - p = vim_strchr(classchars, no_Magic(c)); + p = (char_u *)vim_strchr((char *)classchars, no_Magic(c)); if (p == NULL) { EMSG_RET_NULL(_("E63: invalid use of \\_")); } @@ -5080,7 +5080,7 @@ static long bt_regexec_both(char_u *line, colnr_T col, proftime_T *tm, int *time // This is used very often, esp. for ":global". Use two versions of // the loop to avoid overhead of conditions. if (!rex.reg_ic) { - while ((s = vim_strchr(s, c)) != NULL) { + while ((s = (char_u *)vim_strchr((char *)s, c)) != NULL) { if (cstrncmp(s, prog->regmust, &prog->regmlen) == 0) { break; // Found it. } |