diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-11-06 21:32:06 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-11-06 21:32:06 +0200 |
commit | f7edda5304567939471225d07483ca0394c6ea2c (patch) | |
tree | c1982b40d5f19a0282cb9b4b08e5b17ea5144c5f /tests | |
parent | Merge pull request #4738 (diff) | |
parent | tests: fix MSYS2 gcc 7.3.0 warning -Wtype-limits (diff) | |
download | monero-f7edda5304567939471225d07483ca0394c6ea2c.tar.xz |
Merge pull request #4739
9c1c92db tests: fix MSYS2 gcc 7.3.0 warning -Wtype-limits (xiphon)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_tests/keccak.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/keccak.cpp b/tests/unit_tests/keccak.cpp index 4276b0e1d..37da65d76 100644 --- a/tests/unit_tests/keccak.cpp +++ b/tests/unit_tests/keccak.cpp @@ -37,7 +37,7 @@ extern "C" { #define TEST_KECCAK(sz, chunks) \ std::string data; \ data.resize(sz); \ - for (size_t i = 0; i < sz; ++i) \ + for (size_t i = 0; i < data.size(); ++i) \ data[i] = i * 17; \ uint8_t md0[32], md1[32]; \ keccak((const uint8_t*)data.data(), data.size(), md0, 32); \ |