From dce5f801912ccdc28a712a84cf76bb2055fcf639 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 5 May 2017 14:50:54 +0200 Subject: [PATCH] Fix signed/unsighed compare --- .../ProjectDataModel/RimWellLogExtractionCurve.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp b/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp index 8f97854bce..7182c85e2b 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogExtractionCurve.cpp @@ -316,7 +316,7 @@ void RimWellLogExtractionCurve::onLoadDataAndUpdate() } else { - if (m_branchIndex >= 0 && m_branchIndex < m_generatedSimulationWellPathBranches.size() ) + if (m_branchIndex >= 0 && m_branchIndex < static_cast(m_generatedSimulationWellPathBranches.size()) ) { eclExtractor = wellLogCollection->findOrCreateSimWellExtractor(m_simWellName, eclipseCase->caseUserDescription(), @@ -554,7 +554,7 @@ QList RimWellLogExtractionCurve::calculateValueOptions(c size_t branchCount = m_generatedSimulationWellPathBranches.size(); - for ( int bIdx = 0; bIdx < branchCount; ++bIdx) + for ( int bIdx = 0; bIdx < static_cast(branchCount); ++bIdx) { options.push_back(caf::PdmOptionItemInfo("Branch " + QString::number(bIdx + 1), QVariant::fromValue(bIdx) )); }