From cc76f3bedc5a919e3ae9621d01d683604bb27606 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Thu, 2 Apr 2015 12:13:39 +0200 Subject: [PATCH] fix annoying sign comparison warnings --- applications/ebos/eclwellmanager.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/ebos/eclwellmanager.hh b/applications/ebos/eclwellmanager.hh index 0a36c6c3f..5e721a8f0 100644 --- a/applications/ebos/eclwellmanager.hh +++ b/applications/ebos/eclwellmanager.hh @@ -536,14 +536,14 @@ public: // seems to adhere to it... auto deckSchedule = eclState->getSchedule(); - if (deckSchedule->getTimeMap()->numTimesteps() <= reportStepIdx) + if (deckSchedule->getTimeMap()->numTimesteps() <= (unsigned) reportStepIdx) // for the "until the universe dies" episode, the wells don't change return false; const auto& curDeckWells = deckSchedule->getWells(reportStepIdx); const auto& prevDeckWells = deckSchedule->getWells(reportStepIdx - 1); - for (int i = 0; i < curDeckWells.size(); ++i) { + for (unsigned i = 0; i < curDeckWells.size(); ++i) { if (curDeckWells[i] != prevDeckWells[i]) return true; } @@ -560,7 +560,7 @@ protected: } auto deckSchedule = eclState->getSchedule(); - if (deckSchedule->getTimeMap()->numTimesteps() <= reportStepIdx) + if (deckSchedule->getTimeMap()->numTimesteps() <= (unsigned) reportStepIdx) // for the "until the universe dies" episode, the wells don't change return false;