Clear sign comparison warning under GCC

This commit is contained in:
Jeffrey Walton 2019-05-25 17:00:32 -04:00
parent f90c162b68
commit ca11105a40
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -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;