From 0408671e8f5db7a375476e2b6268108970894466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 4 Sep 2019 13:23:37 +0200 Subject: [PATCH] Math: silence an annoying warning from MSVC about 64-to-32bit conversion. --- 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 b896889c5..c617d91f1 100644 --- a/src/Magnum/Math/Color.h +++ b/src/Magnum/Math/Color.h @@ -1248,7 +1248,7 @@ Calls @ref Color3::fromSrgb(UnsignedInt) on the literal value. Example usage: @m_keywords{_srgbf srgbf} */ inline Color3 operator "" _srgbf(unsigned long long value) { - return Color3::fromSrgb(value); + return Color3::fromSrgb(UnsignedInt(value)); } /** @relatesalso Magnum::Math::Color4 @@ -1283,7 +1283,7 @@ usage: @m_keywords{_srgbaf srgbaf} */ inline Color4 operator "" _srgbaf(unsigned long long value) { - return Color4::fromSrgbAlpha(value); + return Color4::fromSrgbAlpha(UnsignedInt(value)); } }