From 643b9209f8f1bc90fa4e26fc06e95f89b2b04899 Mon Sep 17 00:00:00 2001 From: Treeston Date: Thu, 20 Aug 2020 02:22:23 +0200 Subject: Common/Misc: Clean-up a GCC sign comparison warning --- src/common/Cryptography/AES.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/Cryptography') diff --git a/src/common/Cryptography/AES.cpp b/src/common/Cryptography/AES.cpp index 7d4ccc7c46f..f744f0f69ef 100644 --- a/src/common/Cryptography/AES.cpp +++ b/src/common/Cryptography/AES.cpp @@ -39,7 +39,7 @@ void Trinity::Crypto::AES::Init(Key const& key) bool Trinity::Crypto::AES::Process(IV const& iv, uint8* data, size_t length, Tag& tag) { - ASSERT(length <= std::numeric_limits::max()); + ASSERT(length <= static_cast(std::numeric_limits::max())); int len = static_cast(length); if (!EVP_CipherInit_ex(_ctx, nullptr, nullptr, nullptr, iv.data(), -1)) return false; -- cgit v1.2.3