diff options
Diffstat (limited to 'coding')
-rw-r--r-- | coding/coding_tests/dd_vector_test.cpp | 2 | ||||
-rw-r--r-- | coding/coding_tests/fixed_bits_ddvector_test.cpp | 2 | ||||
-rw-r--r-- | coding/coding_tests/var_serial_vector_test.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/coding/coding_tests/dd_vector_test.cpp b/coding/coding_tests/dd_vector_test.cpp index d6cc16f842..c6993997e3 100644 --- a/coding/coding_tests/dd_vector_test.cpp +++ b/coding/coding_tests/dd_vector_test.cpp @@ -19,7 +19,7 @@ UNIT_TEST(DDVector_Smoke) TEST_EQUAL(2, v[1], ()); TEST_EQUAL(3, v[2], ()); Vector::const_iterator it = v.begin(); - for (size_t i = 0; i < v.size(); ++i, ++it) + for (Vector::size_type i = 0; i < v.size(); ++i, ++it) TEST_EQUAL(v[i], *it, ()); } diff --git a/coding/coding_tests/fixed_bits_ddvector_test.cpp b/coding/coding_tests/fixed_bits_ddvector_test.cpp index f50e11a06f..6bf7a70d3b 100644 --- a/coding/coding_tests/fixed_bits_ddvector_test.cpp +++ b/coding/coding_tests/fixed_bits_ddvector_test.cpp @@ -39,7 +39,7 @@ template <size_t Bits> void TestWithData(vector<uint32_t> const & lst) MemReader reader(buf.data(), buf.size()); auto const vec = TVector::Create(reader); - size_t i = 0; + uint32_t i = 0; for (uint32_t actual : lst) { uint32_t expected; diff --git a/coding/coding_tests/var_serial_vector_test.cpp b/coding/coding_tests/var_serial_vector_test.cpp index b2152ffe98..4bed2a5216 100644 --- a/coding/coding_tests/var_serial_vector_test.cpp +++ b/coding/coding_tests/var_serial_vector_test.cpp @@ -107,5 +107,5 @@ UNIT_TEST(EncodeDecode) VarSerialVectorReader<MemReader> reader(memSource); for (size_t i = 0; i < elements.size(); ++i) - TEST_EQUAL(reader.Read(i), elements[i], ()); + TEST_EQUAL(reader.Read(static_cast<uint32_t>(i)), elements[i], ()); } |