aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp_bt.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-09 11:49:32 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-16 13:27:06 +0200
commitf0148de7907ec297647816d51c79745be729439e (patch)
tree1aaaa4bbb1cff930178e05dd8b0f72482db166e6 /src/nvim/regexp_bt.c
parent7adecbcd29e17b71bf43e50a444724da184c04a7 (diff)
downloadrneovim-f0148de7907ec297647816d51c79745be729439e.tar.gz
rneovim-f0148de7907ec297647816d51c79745be729439e.tar.bz2
rneovim-f0148de7907ec297647816d51c79745be729439e.zip
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/regexp_bt.c')
-rw-r--r--src/nvim/regexp_bt.c4
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.
}