From 728299e322f173c4ade381f505c4e387fa172314 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Wed, 30 Sep 2020 21:11:48 +0200 Subject: [PATCH] rbutil: Fix unnecessary implicit cast. Change-Id: Id05220a700eb826d38023575b02f568b1c1a7580 --- rbutil/rbutilqt/base/utils.cpp | 4 ++-- 1 file 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;