aboutsummaryrefslogtreecommitdiffstats
path: root/src/kdf/kdf2/kdf2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kdf/kdf2/kdf2.cpp')
-rw-r--r--src/kdf/kdf2/kdf2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kdf/kdf2/kdf2.cpp b/src/kdf/kdf2/kdf2.cpp
index 7cc1d7416..b9e785942 100644
--- a/src/kdf/kdf2/kdf2.cpp
+++ b/src/kdf/kdf2/kdf2.cpp
@@ -28,7 +28,7 @@ SecureVector<byte> KDF2::derive(u32bit out_len,
hash->update(P, P_len);
SecureVector<byte> hash_result = hash->final();
- u32bit added = std::min(hash_result.size(), out_len);
+ u32bit added = std::min<u32bit>(hash_result.size(), out_len);
output.append(hash_result, added);
out_len -= added;