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/passhash | |
parent | df4287c3c763de14b262ed39d54b3de552adbefb (diff) |
More MSVC warnings fixes
Diffstat (limited to 'src/lib/passhash')
-rw-r--r-- | src/lib/passhash/bcrypt/bcrypt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/passhash/bcrypt/bcrypt.cpp b/src/lib/passhash/bcrypt/bcrypt.cpp index 8cea34a97..4f3cda2ae 100644 --- a/src/lib/passhash/bcrypt/bcrypt.cpp +++ b/src/lib/passhash/bcrypt/bcrypt.cpp @@ -138,7 +138,7 @@ bool check_bcrypt(const std::string& pass, const std::string& hash) return false; } - const uint16_t workfactor = to_u32bit(hash.substr(4, 2)); + const uint16_t workfactor = to_uint16(hash.substr(4, 2)); const std::vector<uint8_t> salt = bcrypt_base64_decode(hash.substr(7, 22)); if(salt.size() != 16) |