diff options
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index d6a8351330..8444432350 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -12417,7 +12417,7 @@ static void f_resolve(typval_T *argvars, typval_T *rettv) is_relative_to_current = TRUE; len = STRLEN(p); - if (len > 0 && after_pathsep(p, p + len)) { + if (len > 0 && after_pathsep((char *)p, (char *)p + len)) { has_trailing_pathsep = TRUE; p[len - 1] = NUL; /* the trailing slash breaks readlink() */ } @@ -12531,7 +12531,7 @@ static void f_resolve(typval_T *argvars, typval_T *rettv) * if the argument had none. But keep "/" or "//". */ if (!has_trailing_pathsep) { q = p + STRLEN(p); - if (after_pathsep(p, q)) + if (after_pathsep((char *)p, (char *)q)) *path_tail_with_sep(p) = NUL; } @@ -19921,7 +19921,7 @@ repeat: valid |= VALID_HEAD; *usedlen += 2; s = get_past_head(*fnamep); - while (tail > s && after_pathsep(s, tail)) + while (tail > s && after_pathsep((char *)s, (char *)tail)) mb_ptr_back(*fnamep, tail); *fnamelen = (int)(tail - *fnamep); if (*fnamelen == 0) { @@ -19930,7 +19930,7 @@ repeat: *bufp = *fnamep = tail = vim_strsave((char_u *)"."); *fnamelen = 1; } else { - while (tail > s && !after_pathsep(s, tail)) + while (tail > s && !after_pathsep((char *)s, (char *)tail)) mb_ptr_back(*fnamep, tail); } } |