Skip to content

Commit fabb6df

Browse files
guidovrankenMarcoFalke
authored andcommitted
script: Replace address-of idiom with vector data() method
1 parent e2d4e67 commit fabb6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/sigcache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class CSignatureCache
5353
ComputeEntryECDSA(uint256& entry, const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubkey) const
5454
{
5555
CSHA256 hasher = m_salted_hasher_ecdsa;
56-
hasher.Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(&vchSig[0], vchSig.size()).Finalize(entry.begin());
56+
hasher.Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(vchSig.data(), vchSig.size()).Finalize(entry.begin());
5757
}
5858

5959
void

0 commit comments

Comments
 (0)