From 0ba3971cef95565d50ae3457784d753c29cda4cc Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Wed, 31 Dec 2014 09:24:35 +0000 Subject: [PATCH] util: Fixed assertion --- pv/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2