mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix signed/unsigned compare
This commit is contained in:
parent
15dc0e974b
commit
65f4a5e089
@ -126,7 +126,7 @@ bool RiuCellAndNncPickEventHandler::handle3dPickEvent( const Ric3dPickEvent& eve
|
||||
std::array<cvf::Vec3f, 3> intersectionTriangleHit;
|
||||
RimGeoMechResultDefinition* geomResDef = nullptr;
|
||||
RimEclipseResultDefinition* eclResDef = nullptr;
|
||||
size_t timestepIndex = -1;
|
||||
size_t timestepIndex = cvf::UNDEFINED_SIZE_T;
|
||||
|
||||
// clang-format off
|
||||
if ( const RivSourceInfo* rivSourceInfo = dynamic_cast<const RivSourceInfo*>( firstHitPart->sourceInfo() ) )
|
||||
@ -245,13 +245,13 @@ bool RiuCellAndNncPickEventHandler::handle3dPickEvent( const Ric3dPickEvent& eve
|
||||
if ( eclipseView )
|
||||
{
|
||||
if ( !eclResDef ) eclResDef = eclipseView->cellResult();
|
||||
if ( timestepIndex == -1 ) timestepIndex = eclipseView->currentTimeStep();
|
||||
if ( timestepIndex == cvf::UNDEFINED_SIZE_T ) timestepIndex = eclipseView->currentTimeStep();
|
||||
}
|
||||
|
||||
if ( geomView )
|
||||
{
|
||||
if ( !geomResDef ) geomResDef = geomView->cellResult();
|
||||
if ( timestepIndex == -1 ) timestepIndex = geomView->currentTimeStep();
|
||||
if ( timestepIndex == cvf::UNDEFINED_SIZE_T ) timestepIndex = geomView->currentTimeStep();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -494,8 +494,8 @@ QString RiuResultTextBuilder::nncResultText()
|
||||
// clang-format off
|
||||
if ( fmIndexPair.first >= 0 &&
|
||||
fmIndexPair.second >= 0 &&
|
||||
fmNames.size() > fmIndexPair.first &&
|
||||
fmNames.size() > fmIndexPair.second )
|
||||
static_cast<int>(fmNames.size()) > fmIndexPair.first &&
|
||||
static_cast<int>(fmNames.size()) > fmIndexPair.second )
|
||||
{
|
||||
resultValueText = fmNames[fmIndexPair.first] + " - " +
|
||||
fmNames[fmIndexPair.second];
|
||||
|
Loading…
Reference in New Issue
Block a user