X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Futil.cpp;h=83f2ae0b343077725538dde7b59350e63ac07bf1;hb=0518e9c9d1c59080eb167e7b13bd498a90ac1b0f;hp=2e54adeaed3dffae88cb2b7354ce9eb57395302b;hpb=e113edc6663092c278f6b79dd62faedc71f53e5b;p=pulseview.git 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);