diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-05-25 17:00:32 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-05-25 17:00:32 -0400 |
commit | ca11105a40d0ddb38bc48e0dbf23e09184b39e43 (patch) | |
tree | 5d7a146a46cae3182026e38f0a6ce4b9699bc53c /scrypt.cpp | |
parent | f90c162b68a8878f0f633cad03f851f7110af431 (diff) | |
download | cryptopp-git-ca11105a40d0ddb38bc48e0dbf23e09184b39e43.tar.gz |
Clear sign comparison warning under GCC
Diffstat (limited to 'scrypt.cpp')
-rw-r--r-- | scrypt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;
|