aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2018-10-27 14:35:33 +0000
committerxiphon <xiphon@protonmail.com>2018-10-29 08:20:15 +0300
commit9c1c92db659c9cc36232bd0123561f327e22d515 (patch)
tree618a20f4ee15219a57e3ad80c9df2df14e496dda
parentMerge pull request #4721 (diff)
downloadmonero-9c1c92db659c9cc36232bd0123561f327e22d515.tar.xz
tests: fix MSYS2 gcc 7.3.0 warning -Wtype-limits
-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); \