From 80941446984f5d5d53d33046cd4386b5bc586c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 30 Apr 2018 22:53:36 +0200 Subject: [PATCH] Math: fix pointless MSVC warnings. --- src/Magnum/Math/Color.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()};