diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-30 19:52:00 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-05-04 06:55:30 +0200 |
commit | faece47c4706783e0460ed977390a44630b2d44c (patch) | |
tree | ec86896e9ef5d37816a454a72fa5c98246c0cf99 /src/key.h | |
parent | face9611093377e8502d91f2ff56f9319a56357c (diff) |
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.
Diffstat (limited to 'src/key.h')
-rw-r--r-- | src/key.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -151,7 +151,7 @@ struct CExtKey { friend bool operator==(const CExtKey& a, const CExtKey& 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.key == b.key; |