aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-03-05 09:18:42 +0800
committerGitHub <noreply@github.com>2023-03-05 09:18:42 +0800
commit419819b6245e120aba8897e3ddea711b2cd0246c (patch)
tree6a86105155ec9abc9553d3ed69a30321f4be9a01 /src/nvim/eval/funcs.c
parentb44b8e7687ece66f4c535182071223d78ca54ad0 (diff)
downloadrneovim-419819b6245e120aba8897e3ddea711b2cd0246c.tar.gz
rneovim-419819b6245e120aba8897e3ddea711b2cd0246c.tar.bz2
rneovim-419819b6245e120aba8897e3ddea711b2cd0246c.zip
vim-patch:9.0.1380: CTRL-X on 2**64 subtracts two (#22530)
Problem: CTRL-X on 2**64 subtracts two. (James McCoy) Solution: Correct computation for large number. (closes vim/vim#12103) https://github.com/vim/vim/commit/5fb78c3fa5c996c08a65431d698bd2c251eef5c7 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index 4208c5ca46..3a7da21606 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -8033,7 +8033,7 @@ static void f_str2nr(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
break;
}
varnumber_T n;
- vim_str2nr(p, NULL, NULL, what, &n, NULL, 0, false);
+ vim_str2nr(p, NULL, NULL, what, &n, NULL, 0, false, NULL);
// Text after the number is silently ignored.
if (isneg) {
rettv->vval.v_number = -n;