global: Do not assert >= 0 for unsigned values
[pulseview.git] / pv / view / ruler.cpp
index c043aacf2b160d926a557915e2bafe95c397329a..a442901c3e9c76645e44da9a5a9bd5dd18ca8df9 100644 (file)
@@ -79,7 +79,6 @@ void Ruler::paintEvent(QPaintEvent *event)
        } while (tick_period < min_period && unit < countof(ScaleUnits));
 
        const unsigned int prefix = (order - FirstSIPrefixPower) / 3;
-       assert(prefix >= 0);
        assert(prefix < countof(SIPrefixes));
 
        const double multiplier = pow(10.0, - prefix * 3 - FirstSIPrefixPower);