From 2f125b7580c7a8beb234ef3cee6339d6dbe578bf Mon Sep 17 00:00:00 2001 From: Jarrio Date: Thu, 25 Jan 2024 00:58:29 +0000 Subject: [PATCH 1/2] Update Range.hx --- haxe/ui/components/Range.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haxe/ui/components/Range.hx b/haxe/ui/components/Range.hx index 6c71ebca4..b6659e8c9 100644 --- a/haxe/ui/components/Range.hx +++ b/haxe/ui/components/Range.hx @@ -158,7 +158,7 @@ private class RangeEnd extends DataBehaviour { @:access(haxe.ui.core.Component) private class AllowInteraction extends DefaultBehaviour { public override function get():Variant { - return (_component._internalEvents != null); + return (cast _component._internalEvents != null); } public override function set(value:Variant) { @@ -266,4 +266,4 @@ class RangeBuilder extends CompositeBuilder { var name = _component.className.split(".").pop(); trace("WARNING: trying to create an instance of '" + name + "' directly, use either 'Horizontal" + name + "' or 'Vertical" + name + "'"); } -} \ No newline at end of file +} From 3d12c025da68422ba5f85347188e9688e56ab73d Mon Sep 17 00:00:00 2001 From: Jarrio Date: Thu, 25 Jan 2024 00:59:51 +0000 Subject: [PATCH 2/2] Update Variant.hx --- haxe/ui/util/Variant.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haxe/ui/util/Variant.hx b/haxe/ui/util/Variant.hx index 02f6768e1..b31563db8 100644 --- a/haxe/ui/util/Variant.hx +++ b/haxe/ui/util/Variant.hx @@ -356,7 +356,7 @@ abstract Variant(VariantType) from VariantType { @:op(A * B) private function multiply(rhs:Variant):Variant { if (isNumber && rhs.isNumber) { - return toNumber() * rhs.toNumber(); + return cast(toNumber() * rhs.toNumber()); } throw "Variant operation error"; @@ -365,7 +365,7 @@ abstract Variant(VariantType) from VariantType { @:op(A / B) private function divide(rhs:Variant):Variant { if (isNumber && rhs.isNumber) { - return toNumber() / rhs.toNumber(); + return cast(toNumber() / rhs.toNumber()); } throw "Variant operation error";