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)); } }