From 9c1c92db659c9cc36232bd0123561f327e22d515 Mon Sep 17 00:00:00 2001 From: xiphon Date: Sat, 27 Oct 2018 14:35:33 +0000 Subject: [PATCH] tests: fix MSYS2 gcc 7.3.0 warning -Wtype-limits --- tests/unit_tests/keccak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); \