diff --git a/ApplicationLibCode/ReservoirDataModel/RigGriddedPart3d.cpp b/ApplicationLibCode/ReservoirDataModel/RigGriddedPart3d.cpp index c85e50e150..b97143418a 100644 --- a/ApplicationLibCode/ReservoirDataModel/RigGriddedPart3d.cpp +++ b/ApplicationLibCode/ReservoirDataModel/RigGriddedPart3d.cpp @@ -349,7 +349,7 @@ void RigGriddedPart3d::generateGeometry( const std::array& input { m_nodes.push_back( p + m_thicknessFactors[t] * tVec ); - if ( h == nHorzCells ) + if ( h == (int)nHorzCells ) { m_dataNodes.push_back( p + safetyOffset ); }