diff options
Diffstat (limited to 'src/secp256k1/src/hash_impl.h')
-rw-r--r-- | src/secp256k1/src/hash_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/secp256k1/src/hash_impl.h b/src/secp256k1/src/hash_impl.h index 0991fe7838..89f75ace74 100644 --- a/src/secp256k1/src/hash_impl.h +++ b/src/secp256k1/src/hash_impl.h @@ -138,7 +138,7 @@ static void secp256k1_sha256_write(secp256k1_sha256 *hash, const unsigned char * } if (len) { /* Fill the buffer with what remains. */ - memcpy(((unsigned char*)hash->buf) + bufsize, data, len); + memcpy(hash->buf + bufsize, data, len); } } |