diff --git a/tests/cpp_tests/test_byte_buffer.cpp b/tests/cpp_tests/test_byte_buffer.cpp index 83bbae8f0a1e..a6c2b660b983 100644 --- a/tests/cpp_tests/test_byte_buffer.cpp +++ b/tests/cpp_tests/test_byte_buffer.cpp @@ -30,7 +30,7 @@ TEST(ByteBuffer, JustWorks) { EXPECT_EQ(cumulativeSize, buffer->GetSize()); int16_t serializedInt16 = 0; char* int16Ptr = reinterpret_cast(&serializedInt16); - for (uint i = 0; i < sizeof(int16_t); i++) { + for (unsigned int i = 0; i < sizeof(int16_t); i++) { int16Ptr[i] = buffer->GetAt(cumulativeSize - (sizeof(int16_t) - i)); } EXPECT_EQ(int16Val, serializedInt16); @@ -41,7 +41,7 @@ TEST(ByteBuffer, JustWorks) { EXPECT_EQ(cumulativeSize, buffer->GetSize()); int64_t serializedInt64 = 0; char* int64Ptr = reinterpret_cast(&serializedInt64); - for (uint i = 0; i < sizeof(int64_t); i++) { + for (unsigned int i = 0; i < sizeof(int64_t); i++) { int64Ptr[i] = buffer->GetAt(cumulativeSize - (sizeof(int64_t) - i)); } EXPECT_EQ(int64Val, serializedInt64); @@ -52,7 +52,7 @@ TEST(ByteBuffer, JustWorks) { EXPECT_EQ(cumulativeSize, buffer->GetSize()); double serializedDouble = 0; char* doublePtr = reinterpret_cast(&serializedDouble); - for (uint i = 0; i < sizeof(double); i++) { + for (unsigned int i = 0; i < sizeof(double); i++) { doublePtr[i] = buffer->GetAt(cumulativeSize - (sizeof(double) - i)); } EXPECT_EQ(doubleVal, serializedDouble);