Skip to content

Commit

Permalink
Math: fix a warning on 32bit MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Feb 7, 2020
1 parent 88ec501 commit a211873
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Magnum/Math/Color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ std::pair<TweakableState, Magnum::Math::Color3<Magnum::UnsignedByte>> 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, {}};
}
Expand Down Expand Up @@ -196,7 +196,7 @@ std::pair<TweakableState, Magnum::Math::Color4<Magnum::UnsignedByte>> 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, {}};
}
Expand Down Expand Up @@ -226,7 +226,7 @@ std::pair<TweakableState, Magnum::Math::Color3<Magnum::Float>> TweakableParser<M
return {TweakableState::Recompile, {}};
}

if(value.size() != (isSrgb ? 14 : 13)) {
if(value.size() != std::size_t(isSrgb ? 14 : 13)) {
Error{} << "Utility::TweakableParser:" << std::string{value, value.size()} << "doesn't have expected number of digits";
return {TweakableState::Error, {}};
}
Expand Down

0 comments on commit a211873

Please sign in to comment.