diff options
author | Jack Lloyd <[email protected]> | 2018-12-31 18:39:55 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-31 18:39:55 -0500 |
commit | 08169bf624ec46658654dab4a31dd2d295d739b9 (patch) | |
tree | 985e63a612354719f711165f5c2948ff4f1f7e00 /src/lib/pbkdf | |
parent | ea5db236715ffd07ca7e43e27946596ccfba8ef0 (diff) |
Fix MSVC warnings
Diffstat (limited to 'src/lib/pbkdf')
-rw-r--r-- | src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp b/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp index 6555183d1..d04fb47b3 100644 --- a/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp +++ b/src/lib/pbkdf/pgp_s2k/pgp_s2k.cpp @@ -63,7 +63,7 @@ uint8_t RFC4880_encode_count(size_t desired_iterations) auto i = std::upper_bound(OPENPGP_S2K_ITERS, OPENPGP_S2K_ITERS + 256, desired_iterations); - return (i - OPENPGP_S2K_ITERS); + return static_cast<uint8_t>(i - OPENPGP_S2K_ITERS); } size_t RFC4880_decode_count(uint8_t iter) |