Do not compare signed with unsigned

This commit is contained in:
Magne Sjaastad
2017-08-11 16:17:40 +02:00
parent 0ba1746755
commit 3644f4eb76
2 changed files with 4 additions and 4 deletions

View File

@@ -92,17 +92,17 @@ bool RimFractureContainment::isEclipseCellWithinContainment(const RigMainGrid* m
CVF_ASSERT(mainGrid);
size_t i,j,k;
size_t i, j, k;
if (globalCellIndex >= mainGrid->globalCellArray().size()) return false;
bool ok = mainGrid->ijkFromCellIndex(globalCellIndex, &i, &j, &k);
if (k+1 < m_topKLayer())
if (k + 1 < static_cast<size_t>(m_topKLayer()))
{
return false;
}
if (k+1 > m_baseKLayer())
if (k + 1 > static_cast<size_t>(m_baseKLayer()))
{
return false;
}