mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-04 12:40:58 -06:00
Fix comparison between signed and unsigned integer expressions.
This commit is contained in:
parent
2f4ee076de
commit
30cec3e280
@ -1946,7 +1946,8 @@ void RimEclipseResultDefinition::updateRangesForExplicitLegends( RimRegularLegen
|
||||
int frmIdx2 = it->first.second;
|
||||
int combIndex = it->second;
|
||||
|
||||
if ( frmIdx1 >= fnVector.size() || frmIdx2 >= fnVector.size() ) continue;
|
||||
int fnVectorSize = fnVector.size();
|
||||
if ( frmIdx1 >= fnVectorSize || frmIdx2 >= fnVectorSize ) continue;
|
||||
|
||||
QString frmName1 = fnVector[frmIdx1];
|
||||
QString frmName2 = fnVector[frmIdx2];
|
||||
|
@ -321,7 +321,7 @@ std::vector<RigGeoMechWellLogExtractor::WbsParameterSource>
|
||||
bool validLasRegion = true;
|
||||
if ( isPPResResult )
|
||||
{
|
||||
validLasRegion = intersectionIdx < gridValues.size() &&
|
||||
validLasRegion = intersectionIdx < static_cast<int64_t>( gridValues.size() ) &&
|
||||
gridValues[intersectionIdx] != std::numeric_limits<double>::infinity();
|
||||
}
|
||||
|
||||
|
@ -488,7 +488,7 @@ bool AABBTree::buildTree()
|
||||
{
|
||||
bool bThreadRes = bRes;
|
||||
#pragma omp for
|
||||
for (int i = 0; i < m_previousLevelNodes.size(); ++i)
|
||||
for (int i = 0; i < static_cast<int>(m_previousLevelNodes.size()); ++i)
|
||||
{
|
||||
bThreadRes = bThreadRes && buildTree(m_previousLevelNodes[i].node, m_previousLevelNodes[i].fromIdx, m_previousLevelNodes[i].toIdx, 4);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user