Fix signed / unsigned compare

This commit is contained in:
Magne Sjaastad 2018-05-11 14:32:31 +02:00
parent b02bf07568
commit b24b93eba3

View File

@ -52,7 +52,7 @@ RimRegularLegendConfig::ColorRangesType RimEnsembleCurveSetColorManager::cycledE
size_t modIndex = index % m_ensembleColorRanges.size(); size_t modIndex = index % m_ensembleColorRanges.size();
auto crIt = m_ensembleColorRanges.begin(); auto crIt = m_ensembleColorRanges.begin();
for (int i = 0; i < modIndex; ++i) ++crIt; for (int i = 0; i < static_cast<int>(modIndex); ++i) ++crIt;
return crIt->first; return crIt->first;
} }