From ca11105a40d0ddb38bc48e0dbf23e09184b39e43 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 25 May 2019 17:00:32 -0400 Subject: [PATCH] Clear sign comparison warning under GCC --- scrypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrypt.cpp b/scrypt.cpp index cb3b3b46..b588de33 100644 --- a/scrypt.cpp +++ b/scrypt.cpp @@ -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::max()); + CRYPTOPP_ASSERT(parallelization <= static_cast(std::numeric_limits::max())); if (parallelization > static_cast(std::numeric_limits::max())) { std::ostringstream oss;