Index: test/cctest/test-conversions.cc |
diff --git a/test/cctest/test-conversions.cc b/test/cctest/test-conversions.cc |
index aa5c2fbcbdd0954c1ea7f30229693edeba9804e8..b7881edcf6d3d81d5febb646989511f3b6ed10d1 100644 |
--- a/test/cctest/test-conversions.cc |
+++ b/test/cctest/test-conversions.cc |
@@ -318,7 +318,7 @@ TEST(BitField) { |
// One bit bit field can hold values 0 and 1. |
CHECK(!OneBit1::is_valid(static_cast<uint32_t>(-1))); |
CHECK(!OneBit2::is_valid(static_cast<uint32_t>(-1))); |
- for (int i = 0; i < 2; i++) { |
+ for (unsigned i = 0; i < 2; i++) { |
CHECK(OneBit1::is_valid(i)); |
x = OneBit1::encode(i); |
CHECK_EQ(i, OneBit1::decode(x)); |
@@ -333,7 +333,7 @@ TEST(BitField) { |
// Eight bit bit field can hold values from 0 tp 255. |
CHECK(!EightBit1::is_valid(static_cast<uint32_t>(-1))); |
CHECK(!EightBit2::is_valid(static_cast<uint32_t>(-1))); |
- for (int i = 0; i < 256; i++) { |
+ for (unsigned i = 0; i < 256; i++) { |
CHECK(EightBit1::is_valid(i)); |
x = EightBit1::encode(i); |
CHECK_EQ(i, EightBit1::decode(x)); |