0
0
mirror of https://github.com/vim/vim.git synced 2025-09-05 21:43:39 -04:00

patch 8.2.3660: overflow check uses wrong number

Problem:    Overflow check uses wrong number.
Solution:   Divide by ten.
This commit is contained in:
Bram Moolenaar 2021-11-24 13:40:29 +00:00
parent 03725c5795
commit 9b0e82f35e
2 changed files with 3 additions and 1 deletions

View File

@ -630,7 +630,7 @@ getcount:
del_from_showcmd(4); // delete the digit and ~@%
#endif
}
else if (ca.count0 >= 999999999L)
else if (ca.count0 > 99999999L)
{
ca.count0 = 999999999L;
}

View File

@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3660,
/**/
3659,
/**/