diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-10-06 12:19:05 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-10-06 12:19:05 +0200 |
commit | 73e6cf4d274f3b74d6375adbad6719b5795ec09c (patch) | |
tree | 3868302444faa652d07090eb293626f17346d294 | |
parent | ad7ed86aad020230007fa17a4a9f2212bb44eb44 (diff) |
Core/Misc: Fix another gcc warning
-rw-r--r-- | src/common/Cryptography/AES.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Cryptography/AES.cpp b/src/common/Cryptography/AES.cpp index 037160a8dc6..29ccfd0cf06 100644 --- a/src/common/Cryptography/AES.cpp +++ b/src/common/Cryptography/AES.cpp @@ -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; |