Core/Misc: Fix another gcc warning

This commit is contained in:
Shauren
2021-10-06 12:19:05 +02:00
parent ad7ed86aad
commit 73e6cf4d27

View File

@@ -67,7 +67,7 @@ bool Trinity::Crypto::AES::Process(IV const& iv, uint8* data, size_t length, Tag
bool Trinity::Crypto::AES::ProcessNoIntegrityCheck(IV const& iv, uint8* data, size_t partialLength)
{
ASSERT(!_encrypting, "Partial encryption is not allowed");
ASSERT(partialLength <= std::numeric_limits<int>::max());
ASSERT(partialLength <= static_cast<size_t>(std::numeric_limits<int>::max()));
int len = static_cast<int>(partialLength);
if (!EVP_CipherInit_ex(_ctx, nullptr, nullptr, nullptr, iv.data(), -1))
return false;