patch 9.0.1380: CTRL-X on 2**64 subtracts two
Problem: CTRL-X on 2**64 subtracts two. (James McCoy)
Solution: Correct computation for large number. (closes #12103)
diff --git a/src/misc2.c b/src/misc2.c
index 6133a5e..e793987 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1410,7 +1410,7 @@
bp += 3; // skip t_xx, xx may be '-' or '>'
else if (STRNICMP(bp, "char-", 5) == 0)
{
- vim_str2nr(bp + 5, NULL, &l, STR2NR_ALL, NULL, NULL, 0, TRUE);
+ vim_str2nr(bp + 5, NULL, &l, STR2NR_ALL, NULL, NULL, 0, TRUE, NULL);
if (l == 0)
{
emsg(_(e_invalid_argument));
@@ -1448,7 +1448,7 @@
{
// <Char-123> or <Char-033> or <Char-0x33>
vim_str2nr(last_dash + 6, NULL, &l, STR2NR_ALL, NULL,
- &n, 0, TRUE);
+ &n, 0, TRUE, NULL);
if (l == 0)
{
emsg(_(e_invalid_argument));