From 3b9e572f8b8d9b7a4b3c867539c19abfcf4d554c Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 26 Apr 2018 12:11:05 -0700 Subject: [PATCH] Compile fixes --- lime/app/Promise.hx | 2 +- lime/math/color/RGBA.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {