mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Fix type cast warnings
This commit is contained in:
1 parent
26b68f97fb
commit
562ec1a398
1 file changed
+3
-3
+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 )
|
||||
|
||||
Reference in new issue
Block a user