mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-01-31 10:03:29 +00:00
Clear sign comparison warning under GCC
This commit is contained in:
parent
f90c162b68
commit
ca11105a40
@ -211,7 +211,7 @@ void Scrypt::ValidateParameters(size_t derivedLen, word64 cost, word64 blockSize
|
||||
}
|
||||
|
||||
// https://github.com/weidai11/cryptopp/issues/787
|
||||
CRYPTOPP_ASSERT(parallelization <= std::numeric_limits<int>::max());
|
||||
CRYPTOPP_ASSERT(parallelization <= static_cast<word64>(std::numeric_limits<int>::max()));
|
||||
if (parallelization > static_cast<word64>(std::numeric_limits<int>::max()))
|
||||
{
|
||||
std::ostringstream oss;
|
||||
|
Loading…
x
Reference in New Issue
Block a user