aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-02 17:06:00 +0200
committerGitHub <noreply@github.com>2022-09-02 17:06:00 +0200
commit69456f3414f112853eea1b3214a929d99da556d9 (patch)
treeefd13e7450c658984ed0a71f3cd62f2c67264131 /src/nvim/eval.c
parent2afcdbd63a5b0cbeaad9d83b096a3af5201c67a9 (diff)
parent49e893f296bca9eef5ff45a3d746c261d055bf10 (diff)
downloadrneovim-69456f3414f112853eea1b3214a929d99da556d9.tar.gz
rneovim-69456f3414f112853eea1b3214a929d99da556d9.tar.bz2
rneovim-69456f3414f112853eea1b3214a929d99da556d9.zip
Merge pull request #20026 from dundargoc/refactor/char_u/7
refactor: replace char_u with char 7: remove `vim_strnsave`
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 8927e52349..06ee4c8d81 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -2995,7 +2995,7 @@ static int eval7(char **arg, typval_T *rettv, int evaluate, int want_string)
*arg = bp;
} else {
// decimal, hex or octal number
- vim_str2nr((char_u *)(*arg), NULL, &len, STR2NR_ALL, &n, NULL, 0, true);
+ vim_str2nr(*arg, NULL, &len, STR2NR_ALL, &n, NULL, 0, true);
if (len == 0) {
semsg(_(e_invexpr2), *arg);
ret = FAIL;
@@ -6450,7 +6450,7 @@ pos_T *var2fpos(const typval_T *const tv, const bool dollar_lnum, int *const ret
} else {
pos.lnum = curwin->w_cursor.lnum;
if (charcol) {
- pos.col = (colnr_T)mb_charlen(get_cursor_line_ptr());
+ pos.col = (colnr_T)mb_charlen((char_u *)get_cursor_line_ptr());
} else {
pos.col = (colnr_T)STRLEN(get_cursor_line_ptr());
}