summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/utils.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-09-30 21:11:48 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-09-30 21:12:50 +0200
commit728299e322f173c4ade381f505c4e387fa172314 (patch)
tree568f61e6d96236c3155d27eb3b25c3d5560eb4ad /rbutil/rbutilqt/base/utils.cpp
parentc8f79d31b1ef309d4bf42dfda37bf7bd3d8661a8 (diff)
downloadrockbox-728299e322f173c4ade381f505c4e387fa172314.tar.gz
rockbox-728299e322f173c4ade381f505c4e387fa172314.tar.bz2
rockbox-728299e322f173c4ade381f505c4e387fa172314.zip
rbutil: Fix unnecessary implicit cast.
Change-Id: Id05220a700eb826d38023575b02f568b1c1a7580
Diffstat (limited to 'rbutil/rbutilqt/base/utils.cpp')
-rw-r--r--rbutil/rbutilqt/base/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp
index a61ef0d951..3447320e11 100644
--- a/rbutil/rbutilqt/base/utils.cpp
+++ b/rbutil/rbutilqt/base/utils.cpp
@@ -401,8 +401,8 @@ int Utils::compareVersionStrings(QString s1, QString s2)
// convert to number
bool ok1, ok2;
- int vala = numa.toUInt(&ok1);
- int valb = numb.toUInt(&ok2);
+ unsigned int vala = numa.toUInt(&ok1);
+ unsigned int valb = numb.toUInt(&ok2);
// if none of the numbers converted successfully we're at trailing garbage.
if(!ok1 && !ok2)
break;