Skip to content

Commit

Permalink
Merge bitcoin-core/secp256k1#1382: refactor: Drop unused cast
Browse files Browse the repository at this point in the history
4f8c5bd refactor: Drop unused cast (Hennadii Stepanov)

Pull request description:

ACKs for top commit:
  real-or-random:
    utACK 4f8c5bd
  jonasnick:
    ACK 4f8c5bd

Tree-SHA512: cc94b524f53e393bd843383e92bbc5b84dd7557d8121241f2d0461b960a0706236147d02b6f5bfc433272849f517c62eb6f1e0cfae892e1b8054817c27365430
  • Loading branch information
jonasnick committed Jul 24, 2023
2 parents c545fdc + 4f8c5bd commit 2bd5f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hash_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 2bd5f3e

Please sign in to comment.