diff options
author | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-05-24 18:23:54 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2019-05-28 17:12:27 +0300 |
commit | e2d0d658a527eaa3a9b267d55e6b817f5ef5b518 (patch) | |
tree | 5b6bd8e2be77782371c9af22af38aa0a86bc057e /coding | |
parent | 142e4ada6d750ed17301e84311fcbcfc7ac97e9b (diff) |
Fixed warnings for gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
Diffstat (limited to 'coding')
-rw-r--r-- | coding/coding_tests/map_uint32_to_val_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coding/coding_tests/map_uint32_to_val_tests.cpp b/coding/coding_tests/map_uint32_to_val_tests.cpp index 28b380cec2..0066b602e3 100644 --- a/coding/coding_tests/map_uint32_to_val_tests.cpp +++ b/coding/coding_tests/map_uint32_to_val_tests.cpp @@ -17,8 +17,8 @@ UNIT_TEST(MapUint32ValTest) vector<pair<uint32_t, uint32_t>> data; size_t const dataSize = 227; data.resize(dataSize); - for (auto i = 0; i < data.size(); ++i) - data[i] = make_pair(i, i); + for (size_t i = 0; i < data.size(); ++i) + data[i] = make_pair(static_cast<uint32_t>(i), static_cast<uint32_t>(i)); Buffer buffer; { |