rbutil: Fix unnecessary implicit cast.

Change-Id: Id05220a700eb826d38023575b02f568b1c1a7580
This commit is contained in:
Dominik Riebeling 2020-09-30 21:11:48 +02:00
parent c8f79d31b1
commit 728299e322

View file

@ -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;