diff options
author | Jack Lloyd <[email protected]> | 2017-08-31 08:23:30 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-08-31 08:23:30 -0400 |
commit | 7fecb1254232311d5f2ca62f9cda1e12a4b2558c (patch) | |
tree | 2e2cd8ef8ca016310d4cc9aa6bee7abc96c39e2f /src/lib/pubkey/pbes2 | |
parent | df4287c3c763de14b262ed39d54b3de552adbefb (diff) |
More MSVC warnings fixes
Diffstat (limited to 'src/lib/pubkey/pbes2')
-rw-r--r-- | src/lib/pubkey/pbes2/pbes2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/pbes2/pbes2.cpp b/src/lib/pubkey/pbes2/pbes2.cpp index b0a7f336d..6bc7a23c3 100644 --- a/src/lib/pubkey/pbes2/pbes2.cpp +++ b/src/lib/pubkey/pbes2/pbes2.cpp @@ -125,7 +125,7 @@ pbes2_encrypt(const secure_vector<uint8_t>& key_bits, const std::string& digest, RandomNumberGenerator& rng) { - size_t msec_in_iterations_out = msec.count(); + size_t msec_in_iterations_out = static_cast<size_t>(msec.count()); return pbes2_encrypt_shared(key_bits, passphrase, &msec_in_iterations_out, 0, cipher, digest, rng); // return value msec_in_iterations_out discarded } @@ -139,7 +139,7 @@ pbes2_encrypt_msec(const secure_vector<uint8_t>& key_bits, const std::string& digest, RandomNumberGenerator& rng) { - size_t msec_in_iterations_out = msec.count(); + size_t msec_in_iterations_out = static_cast<size_t>(msec.count()); auto ret = pbes2_encrypt_shared(key_bits, passphrase, &msec_in_iterations_out, 0, cipher, digest, rng); |