diff --git a/ApplicationCode/Commands/PlotTemplateCommands/RicSummaryPlotTemplateTools.cpp b/ApplicationCode/Commands/PlotTemplateCommands/RicSummaryPlotTemplateTools.cpp index 37ac2f025e..865f55fbcd 100644 --- a/ApplicationCode/Commands/PlotTemplateCommands/RicSummaryPlotTemplateTools.cpp +++ b/ApplicationCode/Commands/PlotTemplateCommands/RicSummaryPlotTemplateTools.cpp @@ -184,7 +184,7 @@ void RicSummaryPlotTemplateTools::appendSummaryPlotToPlotCollection( maximumIndexValue = std::max( maximumIndexValue, indexValue ); - if ( conversionOk && indexValue < selectedEnsembles.size() ) + if ( conversionOk && indexValue < static_cast( selectedEnsembles.size() ) ) { auto summaryCaseY = selectedEnsembles[indexValue]; curveSet->setSummaryCaseCollection( summaryCaseY ); diff --git a/ApplicationCode/UserInterface/RiuQwtPlotCurve.cpp b/ApplicationCode/UserInterface/RiuQwtPlotCurve.cpp index 5e9bc93a50..dc0cd7fb24 100644 --- a/ApplicationCode/UserInterface/RiuQwtPlotCurve.cpp +++ b/ApplicationCode/UserInterface/RiuQwtPlotCurve.cpp @@ -308,9 +308,9 @@ void RiuQwtPlotCurve::drawSymbols( QPainter* painter, if ( sym ) { - if ( m_perPointLabels.size() == pointsToDisplay.size() ) + if ( m_perPointLabels.size() == static_cast( 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] ); }