mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Fix another gcc warning
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user