mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 9.0.2138: Overflow logic requires long long
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>
This commit is contained in:
committed by
Christian Brabandt
parent
72314bb85f
commit
fda700cb04
@@ -435,6 +435,12 @@ typedef unsigned short sattr_T;
|
||||
*/
|
||||
typedef unsigned int u8char_T; // int is 32 bits or more
|
||||
|
||||
/*
|
||||
* The vimlong_T has sizeof(vimlong_T) >= 2 * sizeof(int).
|
||||
* One use is simple handling of overflow in int calculations.
|
||||
*/
|
||||
typedef long long vimlong_T;
|
||||
|
||||
#ifndef UNIX // For Unix this is included in os_unix.h
|
||||
# include <stdio.h>
|
||||
# include <ctype.h>
|
||||
|
Reference in New Issue
Block a user