Skip to content

Commit

Permalink
Update Int64Helper.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeGuyWhoLovesCoding authored Aug 24, 2024
1 parent 4a21108 commit 3b9090f
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions std/haxe/Int64Helper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ import StringTools;
Helper for parsing to `Int64` instances.
**/
class Int64Helper {
/**
The maximum `Int64` value.
*/
public static var maxValue:Int64 = Int64.make(0x7FFFFFFF, -1);

/**
The minimum `Int64` value.
*/
public static var minValue:Int64 = -maxValue - 1;

/**
Create `Int64` from given string.
**/
Expand Down Expand Up @@ -123,4 +113,26 @@ class Int64Helper {
}
return result;
}

/**
The maximum `Int64` value.
*/
public static var maxValue:Int64 = Int64.make(0x7FFFFFFF, -1);

/**
The minimum `Int64` value.
*/
public static var minValue:Int64 = -maxValue - 1;

/**
The maximum `Int32` value with the type `Int64`.
This is handy for type comparison.
*/
public static var maxValue32:Int64 = Int64.ofInt(0x7FFFFFFF);

/**
The minimum `Int32` value with the type `Int64`.
This is handy for type comparison.
*/
public static var minValue32:Int64 = -maxValue;
}

0 comments on commit 3b9090f

Please sign in to comment.