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