Common/Misc: Clean-up a GCC sign comparison warning

(cherry picked from commit 643b9209f8)
This commit is contained in:
Treeston
2020-08-20 02:22:23 +02:00
committed by Shauren
parent 3548467c93
commit ad7ed86aad

View File

@@ -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<int>::max());
ASSERT(length <= static_cast<size_t>(std::numeric_limits<int>::max()));
int len = static_cast<int>(length);
if (!EVP_CipherInit_ex(_ctx, nullptr, nullptr, nullptr, iv.data(), -1))
return false;