tests: fix MSYS2 gcc 7.3.0 warning -Wtype-limits

This commit is contained in:
xiphon 2018-10-27 14:35:33 +00:00
parent 4cbb476cd1
commit 9c1c92db65

View File

@ -37,7 +37,7 @@ extern "C" {
#define TEST_KECCAK(sz, chunks) \ #define TEST_KECCAK(sz, chunks) \
std::string data; \ std::string data; \
data.resize(sz); \ data.resize(sz); \
for (size_t i = 0; i < sz; ++i) \ for (size_t i = 0; i < data.size(); ++i) \
data[i] = i * 17; \ data[i] = i * 17; \
uint8_t md0[32], md1[32]; \ uint8_t md0[32], md1[32]; \
keccak((const uint8_t*)data.data(), data.size(), md0, 32); \ keccak((const uint8_t*)data.data(), data.size(), md0, 32); \