Skip to content

Commit

Permalink
Update Int128Helper.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeGuyWhoLovesCoding authored Sep 2, 2024
1 parent 9965db8 commit 3b6c0db
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions std/haxe/Int128Helper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ package haxe;

using haxe.Int128;
import haxe.Int128;
import haxe.Int64Helper;

/**
Helper for parsing to `Int128` instances.
Expand Down Expand Up @@ -123,7 +122,7 @@ class Int128Helper {
/**
The minimum `Int128` value.
*/
public static var minValue:Int128 = -maxValue - 1;
public static var minValue:Int128 = -maxValue;

/**
The maximum `Int64` value with the type `Int128`.
Expand All @@ -148,4 +147,16 @@ class Int128Helper {
This is handy for type comparison.
*/
public static var minValue32:Int128 = Int128.ofInt64(Int64Helper.minValue32);

/**
The maximum unsigned `Int32` value with the type `Int128`.
This is handy for type comparison.
*/
public static var maxValue32U:Int128 = Int128.make(0, -1);

/**
The minimum unsigned `Int32` value with the type `Int128`.
This is handy for type comparison.
*/
public static var minValue32U:Int128 = Int128.make(0, -1);
}

0 comments on commit 3b6c0db

Please sign in to comment.