From f4525ea80237bbb57ab7e3ab196fb3e85a4b05bb Mon Sep 17 00:00:00 2001 From: saturneric Date: Tue, 3 Dec 2024 10:42:14 +0100 Subject: fix: compiler warnings --- src/core/function/gpg/GpgKeyManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core/function/gpg/GpgKeyManager.cpp') diff --git a/src/core/function/gpg/GpgKeyManager.cpp b/src/core/function/gpg/GpgKeyManager.cpp index 630b2b0c..d0576e59 100644 --- a/src/core/function/gpg/GpgKeyManager.cpp +++ b/src/core/function/gpg/GpgKeyManager.cpp @@ -173,7 +173,8 @@ auto GpgKeyManager::SetOwnerTrustLevel(const GpgKey& key, } auto GpgKeyManager::DeleteSubkey(const GpgKey& key, int subkey_index) -> bool { - if (subkey_index < 0 || subkey_index >= key.GetSubKeys()->size()) { + if (subkey_index < 0 || + subkey_index >= static_cast(key.GetSubKeys()->size())) { LOG_W() << "illegal subkey index: " << subkey_index; return false; } @@ -258,7 +259,8 @@ auto GpgKeyManager::DeleteSubkey(const GpgKey& key, int subkey_index) -> bool { auto GpgKeyManager::RevokeSubkey(const GpgKey& key, int subkey_index, int reason_code, const QString& reason_text) -> bool { - if (subkey_index < 0 || subkey_index >= key.GetSubKeys()->size()) { + if (subkey_index < 0 || + subkey_index >= static_cast(key.GetSubKeys()->size())) { LOG_W() << "illegal subkey index: " << subkey_index; return false; } -- cgit v1.2.3