diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-03-04 20:47:39 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-04 20:47:39 +0000 |
commit | 5fb78c3fa5c996c08a65431d698bd2c251eef5c7 (patch) | |
tree | 859712525dc94a60f02b27c38d23fdf7f3e96590 /src/option.c | |
parent | 5284b23e148063648be0ff46c730ca574e3ca9fa (diff) |
patch 9.0.1380: CTRL-X on 2**64 subtracts twov9.0.1380
Problem: CTRL-X on 2**64 subtracts two. (James McCoy)
Solution: Correct computation for large number. (closes #12103)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c index 743546798f..f47b51c874 100644 --- a/src/option.c +++ b/src/option.c @@ -2157,7 +2157,7 @@ do_set_option_numeric( else if (*arg == '-' || VIM_ISDIGIT(*arg)) { // Allow negative (for 'undolevels'), octal and hex numbers. - vim_str2nr(arg, NULL, &i, STR2NR_ALL, &value, NULL, 0, TRUE); + vim_str2nr(arg, NULL, &i, STR2NR_ALL, &value, NULL, 0, TRUE, NULL); if (i == 0 || (arg[i] != NUL && !VIM_ISWHITE(arg[i]))) { errmsg = e_number_required_after_equal; |