fix annoying sign comparison warnings

This commit is contained in:
Andreas Lauser 2015-04-02 12:13:39 +02:00
parent b0ffc1f573
commit cc76f3bedc

View File

@ -536,14 +536,14 @@ public:
// seems to adhere to it... // seems to adhere to it...
auto deckSchedule = eclState->getSchedule(); 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 // for the "until the universe dies" episode, the wells don't change
return false; return false;
const auto& curDeckWells = deckSchedule->getWells(reportStepIdx); const auto& curDeckWells = deckSchedule->getWells(reportStepIdx);
const auto& prevDeckWells = deckSchedule->getWells(reportStepIdx - 1); 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]) if (curDeckWells[i] != prevDeckWells[i])
return true; return true;
} }
@ -560,7 +560,7 @@ protected:
} }
auto deckSchedule = eclState->getSchedule(); 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 // for the "until the universe dies" episode, the wells don't change
return false; return false;