summaryrefslogtreecommitdiffstats
path: root/src/misc1.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/misc1.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/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c
index e83ec66f70..bf70e38478 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -2843,7 +2843,7 @@ vim_append_digit_long(long *value, int digit)
// Return something that fits into an int.
int
-trim_to_int(long long x)
+trim_to_int(vimlong_T x)
{
return x > INT_MAX ? INT_MAX : x < INT_MIN ? INT_MIN : x;
}