Removes unsigned-signed integer comparison warnings.

This commit is contained in:
Markus Blatt 2019-04-24 17:20:04 +02:00
parent 48c3802bf3
commit 3aa60433ad
2 changed files with 3 additions and 3 deletions

View File

@ -172,8 +172,8 @@ public:
int cartElem1Idx = vanguard.cartesianIndex(elem1Idx);
int cartElem2Idx = vanguard.cartesianIndex(elem2Idx);
assert(0 <= cartElem1Idx && cartElemFaultIdx_.size() > cartElem1Idx);
assert(0 <= cartElem2Idx && cartElemFaultIdx_.size() > cartElem2Idx);
assert(0 <= cartElem1Idx && cartElemFaultIdx_.size() > 0U + cartElem1Idx);
assert(0 <= cartElem2Idx && cartElemFaultIdx_.size() > 0U + cartElem2Idx);
int fault1Idx = cartElemFaultIdx_[cartElem1Idx];
int fault2Idx = cartElemFaultIdx_[cartElem2Idx];

View File

@ -1737,7 +1737,7 @@ namespace Opm {
const auto& segments = well.segments;
// \Note: eventually we need to hanlde the situations that some segments are shut
assert(int(segment_set.size()) == segments.size());
assert( 1u + segment_set.size() == segments.size());
for (const auto& segment : segments) {
const int segment_index = segment_set.segmentNumberToIndex(segment.first);