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/ex_cmds.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/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 0d8398062d..3ccb29ab37 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -511,7 +511,7 @@ ex_sort(exarg_T *eap) if (sort_nr || sort_flt) { - // Make sure vim_str2nr doesn't read any digits past the end + // Make sure vim_str2nr() doesn't read any digits past the end // of the match, by temporarily terminating the string there s2 = s + end_col; c = *s2; @@ -539,7 +539,7 @@ ex_sort(exarg_T *eap) nrs[lnum - eap->line1].st_u.num.is_number = TRUE; vim_str2nr(s, NULL, NULL, sort_what, &nrs[lnum - eap->line1].st_u.num.value, - NULL, 0, FALSE); + NULL, 0, FALSE, NULL); } } else |