fixed: do not assert conditions guaranteed by unsigned

This commit is contained in:
Arne Morten Kvarving committed 2021-06-18 13:27:58 +02:00
1 parent 592af11e55
commit 463a41d373
1 file changed
+2 -2
+2 -2
View File
@@ -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];
}