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