]> sigrok.org Git - pulseview.git/commitdiff
util: Fixed assertion
authorJoel Holdsworth <redacted>
Wed, 31 Dec 2014 09:24:35 +0000 (09:24 +0000)
committerJoel Holdsworth <redacted>
Thu, 1 Jan 2015 20:55:42 +0000 (20:55 +0000)
pv/util.cpp

index 2e54adeaed3dffae88cb2b7354ce9eb57395302b..83f2ae0b343077725538dde7b59350e63ac07bf1 100644 (file)
@@ -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);