diff --git a/lime/math/color/ARGB.hx b/lime/math/color/ARGB.hx index 90ef6902e..90faa9894 100644 --- a/lime/math/color/ARGB.hx +++ b/lime/math/color/ARGB.hx @@ -6,7 +6,7 @@ import lime.utils.UInt32Array; import lime.utils.UInt8Array; -abstract ARGB(UInt) from Int to Int from UInt to UInt { +abstract ARGB(#if flash Int #else UInt #end) from Int to Int from UInt to UInt { private static var a16:Int; diff --git a/lime/math/color/BGRA.hx b/lime/math/color/BGRA.hx index 607a81dc8..17a30adbf 100644 --- a/lime/math/color/BGRA.hx +++ b/lime/math/color/BGRA.hx @@ -6,7 +6,7 @@ import lime.utils.UInt32Array; import lime.utils.UInt8Array; -abstract BGRA(UInt) from Int to Int from UInt to UInt { +abstract BGRA(#if flash Int #else UInt #end) from Int to Int from UInt to UInt { private static var a16:Int; diff --git a/lime/math/color/RGBA.hx b/lime/math/color/RGBA.hx index c89a751b7..a128c205e 100644 --- a/lime/math/color/RGBA.hx +++ b/lime/math/color/RGBA.hx @@ -8,7 +8,7 @@ import lime.utils.UInt8Array; @:allow(lime.math.color) -abstract RGBA(UInt) from Int to Int from UInt to UInt { +abstract RGBA(#if flash Int #else UInt #end) from Int to Int from UInt to UInt { private static var __alpha16:UInt32Array;