mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: do not assert conditions guaranteed by unsigned
This commit is contained in:
parent
592af11e55
commit
463a41d373
@ -181,7 +181,7 @@ protected:
|
||||
*/
|
||||
unsigned upstreamIndex_(unsigned phaseIdx) const
|
||||
{
|
||||
assert(0 <= phaseIdx && phaseIdx < numPhases);
|
||||
assert(phaseIdx < numPhases);
|
||||
|
||||
return upIdx_[phaseIdx];
|
||||
}
|
||||
@ -195,7 +195,7 @@ protected:
|
||||
*/
|
||||
unsigned downstreamIndex_(unsigned phaseIdx) const
|
||||
{
|
||||
assert(0 <= phaseIdx && phaseIdx < numPhases);
|
||||
assert(phaseIdx < numPhases);
|
||||
|
||||
return dnIdx_[phaseIdx];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user