From fc1cfc1f8a700c4497c2cc5fc1a78eb01224c745 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Fri, 31 Mar 2017 09:10:39 -0400 Subject: [PATCH] remove old hack to workaround dmd bug, now fixed --- color.d | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/color.d b/color.d index 4dd2307..4296726 100644 --- a/color.d +++ b/color.d @@ -154,11 +154,7 @@ struct Color { /// Construct a color with the given values. They should be in range 0 <= x <= 255, where 255 is maximum intensity and 0 is minimum intensity. nothrow pure @nogc this(int red, int green, int blue, int alpha = 255) { - // workaround dmd bug 10937 - if(__ctfe) - this.components[0] = cast(ubyte) red; - else - this.r = cast(ubyte) red; + this.r = cast(ubyte) red; this.g = cast(ubyte) green; this.b = cast(ubyte) blue; this.a = cast(ubyte) alpha;