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
cc746a20cb
commit
55224bed3d
@ -184,7 +184,7 @@ void RicSummaryPlotTemplateTools::appendSummaryPlotToPlotCollection(
|
||||
|
||||
maximumIndexValue = std::max( maximumIndexValue, indexValue );
|
||||
|
||||
if ( conversionOk && indexValue < selectedEnsembles.size() )
|
||||
if ( conversionOk && indexValue < static_cast<int>( selectedEnsembles.size() ) )
|
||||
{
|
||||
auto summaryCaseY = selectedEnsembles[indexValue];
|
||||
curveSet->setSummaryCaseCollection( summaryCaseY );
|
||||
|
@ -308,9 +308,9 @@ void RiuQwtPlotCurve::drawSymbols( QPainter* painter,
|
||||
|
||||
if ( sym )
|
||||
{
|
||||
if ( m_perPointLabels.size() == pointsToDisplay.size() )
|
||||
if ( m_perPointLabels.size() == static_cast<size_t>( pointsToDisplay.size() ) )
|
||||
{
|
||||
for ( int i = 0; i < (int)pointsToDisplay.size(); ++i )
|
||||
for ( int i = 0; i < pointsToDisplay.size(); ++i )
|
||||
{
|
||||
sym->renderSymbolLabel( painter, pointsToDisplay[i], m_perPointLabels[i] );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user