aboutsummaryrefslogtreecommitdiff
path: root/src/uint256.cpp
diff options
context:
space:
mode:
authorMeshCollider <dobsonsa68@gmail.com>2017-07-11 21:37:53 +1200
committerMeshCollider <dobsonsa68@gmail.com>2017-09-08 10:36:26 +1200
commit592404f03f2b734351d734f0c9ca1fdce997321b (patch)
tree463d2c31825679c76f11445366b6736702b2824c /src/uint256.cpp
parentd81dccf191a48a6b59c3747d7b4ccbe3535dde40 (diff)
Changing &vec[0] to vec.data(), what 9804 missed
Diffstat (limited to 'src/uint256.cpp')
-rw-r--r--src/uint256.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uint256.cpp b/src/uint256.cpp
index c4c7b716fe..736a0d4fe2 100644
--- a/src/uint256.cpp
+++ b/src/uint256.cpp
@@ -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>