From: Joel Holdsworth Date: Wed, 31 Dec 2014 09:24:35 +0000 (+0000) Subject: util: Fixed assertion X-Git-Tag: pulseview-0.3.0~281 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=0ba3971cef95565d50ae3457784d753c29cda4cc util: Fixed assertion --- diff --git a/pv/util.cpp b/pv/util.cpp index 2e54adea..83f2ae0b 100644 --- a/pv/util.cpp +++ b/pv/util.cpp @@ -52,7 +52,7 @@ QString format_si_value(double v, QString unit, int prefix, } assert(prefix >= 0); - assert(prefix < countof(SIPrefixes)); + assert(prefix < (int)countof(SIPrefixes)); const double multiplier = pow(10.0, (int)- prefix * 3 - FirstSIPrefixPower);