diff options
author | MeshCollider <dobsonsa68@gmail.com> | 2017-07-11 21:37:53 +1200 |
---|---|---|
committer | MeshCollider <dobsonsa68@gmail.com> | 2017-09-08 10:36:26 +1200 |
commit | 592404f03f2b734351d734f0c9ca1fdce997321b (patch) | |
tree | 463d2c31825679c76f11445366b6736702b2824c /src/bench | |
parent | d81dccf191a48a6b59c3747d7b4ccbe3535dde40 (diff) |
Changing &vec[0] to vec.data(), what 9804 missed
Diffstat (limited to 'src/bench')
-rw-r--r-- | src/bench/crypto_hash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/crypto_hash.cpp b/src/bench/crypto_hash.cpp index 2914a36c7b..410a08e512 100644 --- a/src/bench/crypto_hash.cpp +++ b/src/bench/crypto_hash.cpp @@ -47,7 +47,7 @@ static void SHA256_32b(benchmark::State& state) std::vector<uint8_t> in(32,0); while (state.KeepRunning()) { for (int i = 0; i < 1000000; i++) { - CSHA256().Write(in.data(), in.size()).Finalize(&in[0]); + CSHA256().Write(in.data(), in.size()).Finalize(in.data()); } } } |