Explicit cast; length is already checked by the caller

This commit is contained in:
Frank Denis 2016-03-25 16:00:45 +01:00
parent 1f1d3f70b9
commit 811bdb2c5f

View File

@ -187,7 +187,7 @@ int argon2_verify(const char *encoded, const void *pwd, const size_t pwdlen,
ctx.secretlen = 0;
/* max values, to be updated in decode_string */
encoded_len = strlen(encoded);
encoded_len = (uint32_t) strlen(encoded);
ctx.adlen = encoded_len;
ctx.saltlen = encoded_len;
ctx.outlen = encoded_len;