mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Common/Misc: Clean-up a GCC sign comparison warning
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user