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

This commit is contained in:
Treeston
2020-08-20 02:22:23 +02:00
parent 4286e7aa02
commit 643b9209f8

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;