aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-11-06 21:32:06 +0200
committerRiccardo Spagni <ric@spagni.net>2018-11-06 21:32:06 +0200
commitf7edda5304567939471225d07483ca0394c6ea2c (patch)
treec1982b40d5f19a0282cb9b4b08e5b17ea5144c5f
parentMerge pull request #4738 (diff)
parenttests: fix MSYS2 gcc 7.3.0 warning -Wtype-limits (diff)
downloadmonero-f7edda5304567939471225d07483ca0394c6ea2c.tar.xz
Merge pull request #4739
9c1c92db tests: fix MSYS2 gcc 7.3.0 warning -Wtype-limits (xiphon)
-rw-r--r--tests/unit_tests/keccak.cpp2
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); \