mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Changing &vec[0] to vec.data(), what 9804 missed
This commit is contained in:
@@ -14,7 +14,7 @@ template <unsigned int BITS>
|
||||
base_blob<BITS>::base_blob(const std::vector<unsigned char>& vch)
|
||||
{
|
||||
assert(vch.size() == sizeof(data));
|
||||
memcpy(data, &vch[0], sizeof(data));
|
||||
memcpy(data, vch.data(), sizeof(data));
|
||||
}
|
||||
|
||||
template <unsigned int BITS>
|
||||
|
||||
Reference in New Issue
Block a user