diff --git a/src/Magnum/Math/Color.h b/src/Magnum/Math/Color.h index 60d716186..0c2f3ccbd 100644 --- a/src/Magnum/Math/Color.h +++ b/src/Magnum/Math/Color.h @@ -149,8 +149,8 @@ template inline Color4 fromSrgbAlphaIntegral(const V /* RGB -> sRGB conversion */ template Vector3::FloatingPointType> toSrgb(typename std::enable_if::value, const Color3&>::type rgb) { - constexpr const T a(0.055); - return lerp(rgb*T(12.92), (T(1.0) + a)*pow(rgb, T(1.0)/T(2.4)) - Vector3{a}, rgb > Vector3(0.0031308)); + constexpr const T a = T(0.055); + return lerp(rgb*T(12.92), (T(1.0) + a)*pow(rgb, T(1.0)/T(2.4)) - Vector3{a}, rgb > Vector3(T(0.0031308))); } template Vector4::FloatingPointType> toSrgbAlpha(typename std::enable_if::value, const Color4&>::type rgba) { return {toSrgb(rgba.rgb()), rgba.a()};