diff --git a/ApplicationLibCode/FileInterface/RifActiveCellsReader.cpp b/ApplicationLibCode/FileInterface/RifActiveCellsReader.cpp index 96a52c7690..0948dab1cf 100644 --- a/ApplicationLibCode/FileInterface/RifActiveCellsReader.cpp +++ b/ApplicationLibCode/FileInterface/RifActiveCellsReader.cpp @@ -73,7 +73,7 @@ std::vector> RifActiveCellsReader::activeCellsFromPorvKeyword( std::vector porvValues; RifEclipseOutputFileTools::keywordData( ecl_file, PORV_KW, gridIdx, &porvValues ); - size_t activeCellCount = porvValues.size(); + int activeCellCount = static_cast( porvValues.size() ); // For some cases, the dual porosity flag is not interpreted correctly. Add a fallback by checking the number of // cells in the main grid @@ -88,9 +88,9 @@ std::vector> RifActiveCellsReader::activeCellsFromPorvKeyword( std::vector activeCellsOneGrid; activeCellsOneGrid.resize( activeCellCount, 0 ); - for ( size_t poreValueIndex = 0; poreValueIndex < porvValues.size(); poreValueIndex++ ) + for ( int poreValueIndex = 0; poreValueIndex < static_cast( porvValues.size() ); poreValueIndex++ ) { - size_t indexToCell = poreValueIndex; + int indexToCell = poreValueIndex; if ( indexToCell >= activeCellCount ) { indexToCell = poreValueIndex - activeCellCount;