diff options
Diffstat (limited to 'src/lib/pbkdf/scrypt')
-rw-r--r-- | src/lib/pbkdf/scrypt/scrypt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pbkdf/scrypt/scrypt.cpp b/src/lib/pbkdf/scrypt/scrypt.cpp index d493c17e1..8275ac956 100644 --- a/src/lib/pbkdf/scrypt/scrypt.cpp +++ b/src/lib/pbkdf/scrypt/scrypt.cpp @@ -97,7 +97,7 @@ std::unique_ptr<PasswordHash> Scrypt_Family::tune(size_t output_length, // If we have extra runtime budget, increment p if(target_nsec / est_nsec > 2) - p *= std::min<uint64_t>(1024, (target_nsec / est_nsec)); + p *= std::min<size_t>(1024, static_cast<size_t>(target_nsec / est_nsec)); return std::unique_ptr<PasswordHash>(new Scrypt(N, r, p)); } |