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