From faece47c4706783e0460ed977390a44630b2d44c Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 30 Apr 2021 19:52:00 +0200 Subject: 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. --- src/key.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/key.h') diff --git a/src/key.h b/src/key.h index 206322956c..3ee49a778b 100644 --- a/src/key.h +++ b/src/key.h @@ -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; -- cgit v1.2.3