mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix signed / unsigned compare
This commit is contained in:
parent
b02bf07568
commit
b24b93eba3
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user