* properly define Min/Max values of Native*Int helpers, resolves #33543

git-svn-id: trunk@38664 -
This commit is contained in:
florian 2018-04-02 21:31:23 +00:00
parent 25c5ee2fc3
commit add418db0e

View File

@ -522,13 +522,8 @@ Type
TNativeIntHelper = Type Helper for NativeInt
public
const
{$IFDEF CPU64BITS}
MaxValue = 9223372036854775807;
MinValue = -9223372036854775808;
{$ELSE !CPU64BITS}
MaxValue = 2147483647;
MinValue = -2147483648;
{$ENDIF CPU64BITS}
MaxValue = High(NativeInt);
MinValue = Low(NativeUInt);
Public
Class Function Parse(const AString: string): NativeInt; inline; static;
Class Function Size: Integer; inline; static;
@ -547,11 +542,7 @@ Type
TNativeUIntHelper = Type Helper for NativeUInt
public
const
{$IFDEF CPU64BITS}
MaxValue = 18446744073709551615;
{$ELSE !CPU64BITS}
MaxValue = 4294967295;
{$ENDIF CPU64BITS}
MaxValue = High(NativeUInt);
MinValue = 0;
Public
Class Function Parse(const AString: string): NativeUInt; inline; static;