diff options
author | lloyd <[email protected]> | 2007-07-23 15:44:04 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-07-23 15:44:04 +0000 |
commit | e2f1f734277146d817ab284dea21e4013cb5b937 (patch) | |
tree | 21ad6ee775e36aa7fb24a504077200c22b1f15b8 /src/kdf.cpp | |
parent | 211c4929ae92106794984d872a0cae1a873baa29 (diff) |
Avoid C-style casts (as detected by GCC's -Wold-style-cast) and instead use
static_cast or reinterpret_cast, as needed.
Diffstat (limited to 'src/kdf.cpp')
-rw-r--r-- | src/kdf.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kdf.cpp b/src/kdf.cpp index 5dd53b957..3a7a2e025 100644 --- a/src/kdf.cpp +++ b/src/kdf.cpp @@ -19,7 +19,8 @@ SecureVector<byte> KDF::derive_key(u32bit key_len, const std::string& salt) const { return derive_key(key_len, secret, secret.size(), - (const byte*)salt.data(), salt.length()); + reinterpret_cast<const byte*>(salt.data()), + salt.length()); } /************************************************* @@ -52,7 +53,8 @@ SecureVector<byte> KDF::derive_key(u32bit key_len, const std::string& salt) const { return derive_key(key_len, secret, secret_len, - (const byte*)salt.data(), salt.length()); + reinterpret_cast<const byte*>(salt.data()), + salt.length()); } /************************************************* |