mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-13 14:14:00 +01:00
refactor: Avoid &foo[0] on C-Style arrays
This is confusing at best when parts of a class use the redundant operators and other parts do not.
This commit is contained in:
@@ -247,7 +247,7 @@ struct CExtPubKey {
|
||||
friend bool operator==(const CExtPubKey &a, const CExtPubKey &b)
|
||||
{
|
||||
return a.nDepth == b.nDepth &&
|
||||
memcmp(&a.vchFingerprint[0], &b.vchFingerprint[0], sizeof(vchFingerprint)) == 0 &&
|
||||
memcmp(a.vchFingerprint, b.vchFingerprint, sizeof(vchFingerprint)) == 0 &&
|
||||
a.nChild == b.nChild &&
|
||||
a.chaincode == b.chaincode &&
|
||||
a.pubkey == b.pubkey;
|
||||
|
||||
Reference in New Issue
Block a user