mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-20 02:25:14 -07:00
Remove unnecessary cast
This commit is contained in:
parent
42fd127d09
commit
d5b0f7e802
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user