From a2118730a38f4f77297bb84108978f01f8d875bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 7 Feb 2020 19:18:38 +0100 Subject: [PATCH] Math: fix a warning on 32bit MSVC. --- src/Magnum/Math/Color.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Math/Color.cpp b/src/Magnum/Math/Color.cpp index 649fb5a009..b4cbca3206 100644 --- a/src/Magnum/Math/Color.cpp +++ b/src/Magnum/Math/Color.cpp @@ -166,7 +166,7 @@ std::pair> TweakableP return {TweakableState::Recompile, {}}; } - if(value.size() != (isSrgb ? 13 : 12)) { + if(value.size() != std::size_t(isSrgb ? 13 : 12)) { Error{} << "Utility::TweakableParser:" << std::string{value, value.size()} << "doesn't have expected number of digits"; return {TweakableState::Error, {}}; } @@ -196,7 +196,7 @@ std::pair> TweakableP return {TweakableState::Recompile, {}}; } - if(value.size() != (isSrgb ? 16 : 15)) { + if(value.size() != std::size_t(isSrgb ? 16 : 15)) { Error{} << "Utility::TweakableParser:" << std::string{value, value.size()} << "doesn't have expected number of digits"; return {TweakableState::Error, {}}; } @@ -226,7 +226,7 @@ std::pair> TweakableParser