Fix signed / unsigned compare

This commit is contained in:
Magne Sjaastad 2018-04-05 14:25:06 +02:00
parent 9b0427aba9
commit 69b6ca6956

View File

@ -165,7 +165,7 @@ void RivSimWellPipesPartMgr::buildWellPipeParts(const caf::DisplayCoordTransform
size_t branchIdxStop = pipeBranchesCellIds.size();
if (m_pipeBranchesCLCoords.size() > 1)
{
if (branchIndex >= 0 && branchIndex < branchIdxStop)
if (branchIndex >= 0 && branchIndex < static_cast<int>(branchIdxStop))
{
branchIdxStart = branchIndex;
branchIdxStop = branchIdxStart + 1;