summaryrefslogtreecommitdiffstats
path: root/src/cindent.c
diff options
context:
space:
mode:
authorErnie Rael <errael@raelity.com>2023-11-30 18:20:00 +0100
committerChristian Brabandt <cb@256bit.org>2023-11-30 18:20:00 +0100
commitfda700cb04612fe2f9301a9ba820309175decabf (patch)
treeb704d6bc4f42405f5b6ead830637b4aa167a7de4 /src/cindent.c
parent72314bb85f56dabc56d59b135083a80f85eafbb7 (diff)
patch 9.0.2138: Overflow logic requires long longv9.0.2138
Problem: Overflow logic requires long long Solution: Define vimlong_T data type to make life easier for porters closes: #13598 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/cindent.c')
-rw-r--r--src/cindent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cindent.c b/src/cindent.c
index a9b813f6d8..62894228b1 100644
--- a/src/cindent.c
+++ b/src/cindent.c
@@ -1730,7 +1730,7 @@ parse_cino(buf_T *buf)
char_u *p;
char_u *l;
char_u *digits;
- long long n;
+ vimlong_T n;
int divider;
int fraction = 0;
int sw;
@@ -1902,7 +1902,7 @@ parse_cino(buf_T *buf)
{
n *= sw;
if (divider)
- n += ((long long)sw * fraction + divider / 2) / divider;
+ n += ((vimlong_T)sw * fraction + divider / 2) / divider;
}
++p;
}