projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9e7173
)
util: Fixed assertion
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Wed, 31 Dec 2014 09:24:35 +0000
(09:24 +0000)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Thu, 1 Jan 2015 20:55:42 +0000
(20:55 +0000)
pv/util.cpp
patch
|
blob
|
history
diff --git
a/pv/util.cpp
b/pv/util.cpp
index 2e54adeaed3dffae88cb2b7354ce9eb57395302b..83f2ae0b343077725538dde7b59350e63ac07bf1 100644
(file)
--- 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);