diff --git a/lime/app/Promise.hx b/lime/app/Promise.hx index dee3eedfd..67df70d02 100644 --- a/lime/app/Promise.hx +++ b/lime/app/Promise.hx @@ -7,7 +7,7 @@ package lime.app; #end @:allow(lime.app.Future) -#if !js @:generic #end +#if (!hl && !js) @:generic #end class Promise { diff --git a/lime/math/color/RGBA.hx b/lime/math/color/RGBA.hx index ae2fac972..dca23bbec 100644 --- a/lime/math/color/RGBA.hx +++ b/lime/math/color/RGBA.hx @@ -35,7 +35,7 @@ abstract RGBA(#if flash Int #else UInt #end) from Int to Int from UInt to UInt { } - __clamp = new UInt8Array (0xFF + 0xFF); + __clamp = new UInt8Array (0xFF + 0xFF + 1); for (i in 0...0xFF) {