diff --git a/ApplicationCode/ModelVisualization/RivWellFracturePartMgr.cpp b/ApplicationCode/ModelVisualization/RivWellFracturePartMgr.cpp index 6f143be443..4077c56e24 100644 --- a/ApplicationCode/ModelVisualization/RivWellFracturePartMgr.cpp +++ b/ApplicationCode/ModelVisualization/RivWellFracturePartMgr.cpp @@ -69,7 +69,7 @@ void RivWellFracturePartMgr::updatePartGeometry(caf::DisplayCoordTransform* disp const std::vector& triangleIndices = m_rimFracture->triangleIndices(); std::vector displayCoords; - for (int i = 0; i < nodeCoords.size(); i++) + for (size_t i = 0; i < nodeCoords.size(); i++) { cvf::Vec3d nodeCoordsDouble = static_cast(nodeCoords[i]); cvf::Vec3d displayCoordsDouble = displayCoordTransform->transformToDisplayCoord(nodeCoordsDouble); diff --git a/ApplicationCode/ReservoirDataModel/RigCellGeometryTools.cpp b/ApplicationCode/ReservoirDataModel/RigCellGeometryTools.cpp index 4b9db23673..9c587992c1 100644 --- a/ApplicationCode/ReservoirDataModel/RigCellGeometryTools.cpp +++ b/ApplicationCode/ReservoirDataModel/RigCellGeometryTools.cpp @@ -241,7 +241,7 @@ double RigCellGeometryTools::polygonAreaWeightedLength(cvf::Vec3d directionOfLen double totalArea = 0.0; double totalAreaXlength = 0.0; - for (int i = 0; i < areasOfPolygonContributions.size(); i++) + for (size_t i = 0; i < areasOfPolygonContributions.size(); i++) { totalArea += areasOfPolygonContributions[i]; totalAreaXlength += (areasOfPolygonContributions[i] * lengthOfPolygonContributions[i]); diff --git a/ApplicationCode/ReservoirDataModel/RigWellPath.cpp b/ApplicationCode/ReservoirDataModel/RigWellPath.cpp index 61dbfeb9cf..161919196b 100644 --- a/ApplicationCode/ReservoirDataModel/RigWellPath.cpp +++ b/ApplicationCode/ReservoirDataModel/RigWellPath.cpp @@ -59,7 +59,7 @@ cvf::Vec3d RigWellPath::interpolatedPointAlongWellPath(double measuredDepth) { cvf::Vec3d wellPathPoint = cvf::Vec3d::ZERO; - int i = 0; + size_t i = 0; while (i < m_measuredDepths.size() && m_measuredDepths.at(i) < measuredDepth ) { i++;