mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Do not compare signed with unsigned
This commit is contained in:
parent
0ba1746755
commit
3644f4eb76
@ -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;
|
||||
}
|
||||
|
@ -464,7 +464,7 @@ std::vector<cvf::Vec3d> RigCellGeometryTools::ajustPolygonToAvoidIntersectionsAt
|
||||
for (cvf::Vec3d polygonPoint : polygon)
|
||||
{
|
||||
|
||||
for (int i = 0; i < polyLine.size() - 1; i++)
|
||||
for (size_t i = 0; i < polyLine.size() - 1; i++)
|
||||
{
|
||||
cvf::Vec3d linePoint1(polyLine[i].x(), polyLine[i].y(), 0.0);
|
||||
cvf::Vec3d linePoint2(polyLine[i + 1].x(), polyLine[i + 1].y(), 0.0);
|
||||
|
Loading…
Reference in New Issue
Block a user