diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-01-31 17:28:23 +0100 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-01-31 17:35:01 +0100 |
commit | 365539c84691d470b44d35df374d8c049f8c1192 (patch) | |
tree | 5f2644692ed3076d35347bc79cef5790681165e6 /src/bench/data.cpp | |
parent | 63d4ee1968144cc3d115f92baef95785abf813ac (diff) | |
download | bitcoin-365539c84691d470b44d35df374d8c049f8c1192.tar.xz |
refactor: init vectors via std::{begin,end} to avoid pointer arithmetic
Diffstat (limited to 'src/bench/data.cpp')
-rw-r--r-- | src/bench/data.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/data.cpp b/src/bench/data.cpp index 0ae4c7cad4..481e372105 100644 --- a/src/bench/data.cpp +++ b/src/bench/data.cpp @@ -8,7 +8,7 @@ namespace benchmark { namespace data { #include <bench/data/block413567.raw.h> -const std::vector<uint8_t> block413567{block413567_raw, block413567_raw + sizeof(block413567_raw) / sizeof(block413567_raw[0])}; +const std::vector<uint8_t> block413567{std::begin(block413567_raw), std::end(block413567_raw)}; } // namespace data } // namespace benchmark |