changeset 26258:a74c8936794a v8.2.3660

patch 8.2.3660: overflow check uses wrong number Commit: https://github.com/vim/vim/commit/9b0e82f35ed4e98414333e71b71ca56219683d16 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 24 13:40:29 2021 +0000 patch 8.2.3660: overflow check uses wrong number Problem: Overflow check uses wrong number. Solution: Divide by ten.
author Bram Moolenaar <Bram@vim.org>
date Wed, 24 Nov 2021 14:45:03 +0100
parents e3534fa157a0
children e6705546cb6f
files src/normal.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/normal.c
+++ b/src/normal.c
@@ -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;
 	    }
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3660,
+/**/
     3659,
 /**/
     3658,