diff --git a/lang/qt/tests/t-keylist.cpp b/lang/qt/tests/t-keylist.cpp index 5875dfb4..dddcb738 100644 --- a/lang/qt/tests/t-keylist.cpp +++ b/lang/qt/tests/t-keylist.cpp @@ -151,7 +151,7 @@ private Q_SLOTS: delete job; QVERIFY(!result.error()); - QCOMPARE(secKeys.size(), 2u); + QCOMPARE(secKeys.size(), static_cast(2)); std::vector secKeyFingerprints = std::accumulate(secKeys.begin(), secKeys.end(), std::vector(), accumulateFingerprints); QCOMPARE(secKeyFingerprints, std::vector({ "23FD347A419429BACCD5E72D6BC4778054ACD246", @@ -162,7 +162,7 @@ private Q_SLOTS: QVERIFY(secKeys[0].subkeys()[0].keyGrip()); } - QCOMPARE(pubKeys.size(), 26u); + QCOMPARE(pubKeys.size(), static_cast(26)); std::vector pubKeyFingerprints = std::accumulate(pubKeys.begin(), pubKeys.end(), std::vector(), accumulateFingerprints); QCOMPARE(pubKeyFingerprints, std::vector({ "045B2334ADD69FC221076841A5E67F7FA3AE3EA1", diff --git a/lang/qt/tests/t-various.cpp b/lang/qt/tests/t-various.cpp index 72a2487a..dca34d30 100644 --- a/lang/qt/tests/t-various.cpp +++ b/lang/qt/tests/t-various.cpp @@ -230,7 +230,7 @@ private Q_SLOTS: std::vector primaryKey; primaryKey.push_back(key.subkey(0)); const auto err = ctx->setExpire(key, 3000, primaryKey); - QCOMPARE(err.code(), GPG_ERR_NOT_FOUND); + QCOMPARE(err.code(), static_cast(GPG_ERR_NOT_FOUND)); delete ctx; }