aboutsummaryrefslogtreecommitdiffstats
path: root/src/pbkdf
diff options
context:
space:
mode:
Diffstat (limited to 'src/pbkdf')
-rw-r--r--src/pbkdf/pbkdf2/pbkdf2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pbkdf/pbkdf2/pbkdf2.cpp b/src/pbkdf/pbkdf2/pbkdf2.cpp
index b1c7b2e07..88131da01 100644
--- a/src/pbkdf/pbkdf2/pbkdf2.cpp
+++ b/src/pbkdf/pbkdf2/pbkdf2.cpp
@@ -42,7 +42,7 @@ OctetString PKCS5_PBKDF2::derive_key(u32bit key_len,
u32bit counter = 1;
while(key_len)
{
- u32bit T_size = std::min(mac->OUTPUT_LENGTH, key_len);
+ u32bit T_size = std::min<u32bit>(mac->OUTPUT_LENGTH, key_len);
mac->update(salt, salt_size);
for(u32bit j = 0; j != 4; ++j)