Fix type cast warnings

This commit is contained in:
Magne Sjaastad committed 2021-02-26 16:03:17 +01:00
1 parent 26b68f97fb
commit 562ec1a398
1 file changed
+3 -3
@@ -605,9 +605,9 @@ bool RimStimPlanModelWellLogCalculator::replaceMissingValuesWithOtherKLayer( Ria
.arg( j + 1 )
.arg( k + 1 ) );
int neighborK = k + moveDirection;
const int minK = 1;
const int maxK = mainGrid->cellCountK();
int neighborK = static_cast<int>( k ) + moveDirection;
const int minK = static_cast<int>( 1 );
const int maxK = static_cast<int>( mainGrid->cellCountK() );
bool isFound = false;
while ( !isFound && neighborK >= minK && neighborK <= maxK )