From 38f053a5f8cb1ca351ba52d76c15491d63fd3eb0 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 30 Sep 2018 16:45:20 -0400 Subject: Fix some MSVC warnings --- src/lib/pbkdf/pbkdf2/pbkdf2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/pbkdf') diff --git a/src/lib/pbkdf/pbkdf2/pbkdf2.cpp b/src/lib/pbkdf/pbkdf2/pbkdf2.cpp index 65e8a9503..6fc007bf3 100644 --- a/src/lib/pbkdf/pbkdf2/pbkdf2.cpp +++ b/src/lib/pbkdf/pbkdf2/pbkdf2.cpp @@ -178,7 +178,7 @@ PBKDF* PKCS5_PBKDF2::clone() const PBKDF2::PBKDF2(const MessageAuthenticationCode& prf, size_t olen, std::chrono::milliseconds msec) : m_prf(prf.clone()), - m_iterations(tune_pbkdf2(*m_prf, olen, msec.count())) + m_iterations(tune_pbkdf2(*m_prf, olen, static_cast(msec.count()))) {} std::string PBKDF2::to_string() const -- cgit v1.2.3