From 3b6c0db6a6b5d592c9a1c801e183d31c1683f22a Mon Sep 17 00:00:00 2001 From: SomeGuyWhoLovesCoding <99929173+SomeGuyWhoLovesCoding@users.noreply.github.com> Date: Sun, 1 Sep 2024 22:48:56 -0400 Subject: [PATCH] Update Int128Helper.hx --- std/haxe/Int128Helper.hx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/std/haxe/Int128Helper.hx b/std/haxe/Int128Helper.hx index 2679195ad8c..1fc17f99851 100644 --- a/std/haxe/Int128Helper.hx +++ b/std/haxe/Int128Helper.hx @@ -24,7 +24,6 @@ package haxe; using haxe.Int128; import haxe.Int128; -import haxe.Int64Helper; /** Helper for parsing to `Int128` instances. @@ -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`. @@ -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); }