mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 03:18:09 -03:00
refactor: Avoid needless, unsafe c-style cast
This commit is contained in:
parent
477b357460
commit
fac3a782ea
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ std::string EncodeBase58Check(Span<const unsigned char> input)
|
|||
// add 4-byte hash check to the end
|
||||
std::vector<unsigned char> vch(input.begin(), input.end());
|
||||
uint256 hash = Hash(vch);
|
||||
vch.insert(vch.end(), (unsigned char*)&hash, (unsigned char*)&hash + 4);
|
||||
vch.insert(vch.end(), hash.data(), hash.data() + 4);
|
||||
return EncodeBase58(vch);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue