Remove unnecessary cast

This commit is contained in:
Frank Denis 2014-04-10 22:50:16 -07:00
parent 3d666ce901
commit 175bcccee1

View File

@ -286,7 +286,7 @@ crypto_hash(unsigned char *out, const unsigned char *in,
crypto_hash_sha256_state state;
crypto_hash_sha256_init(&state);
if (crypto_hash_sha256_update(&state, (const void *) in, inlen) != 0) {
if (crypto_hash_sha256_update(&state, in, inlen) != 0) {
sodium_memzero(out, crypto_hash_BYTES);
return -1;
}