From: Bram Moolenaar Date: Wed, 24 Nov 2021 13:40:29 +0000 (+0000) Subject: patch 8.2.3660: overflow check uses wrong number X-Git-Tag: v8.2.3660 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b0e82f35ed4e98414333e71b71ca56219683d16;p=vim patch 8.2.3660: overflow check uses wrong number Problem: Overflow check uses wrong number. Solution: Divide by ten. --- diff --git a/src/normal.c b/src/normal.c index adce93205..0fbfe9207 100644 --- 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; } diff --git a/src/version.c b/src/version.c index c56391f35..ffc40ef81 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3660, /**/ 3659, /**/