Index: test/unittests/source-position-table-unittest.cc |
diff --git a/test/unittests/source-position-table-unittest.cc b/test/unittests/source-position-table-unittest.cc |
index 01d96750614fe1f86b91dff86f8aa44f0a30b815..b1d63aa3dde7f014224ffabf9866f723a6444168 100644 |
--- a/test/unittests/source-position-table-unittest.cc |
+++ b/test/unittests/source-position-table-unittest.cc |
@@ -25,7 +25,7 @@ static int offsets[] = {0, 1, 2, 3, 4, 30, 31, 32, |
TEST_F(SourcePositionTableTest, EncodeStatement) { |
SourcePositionTableBuilder builder(zone()); |
- for (int i = 0; i < arraysize(offsets); i++) { |
+ for (size_t i = 0; i < arraysize(offsets); i++) { |
builder.AddPosition(offsets[i], offsets[i], true); |
} |
@@ -37,7 +37,7 @@ TEST_F(SourcePositionTableTest, EncodeStatement) { |
TEST_F(SourcePositionTableTest, EncodeStatementDuplicates) { |
SourcePositionTableBuilder builder(zone()); |
- for (int i = 0; i < arraysize(offsets); i++) { |
+ for (size_t i = 0; i < arraysize(offsets); i++) { |
builder.AddPosition(offsets[i], offsets[i], true); |
builder.AddPosition(offsets[i], offsets[i] + 1, true); |
} |
@@ -50,7 +50,7 @@ TEST_F(SourcePositionTableTest, EncodeStatementDuplicates) { |
TEST_F(SourcePositionTableTest, EncodeExpression) { |
SourcePositionTableBuilder builder(zone()); |
- for (int i = 0; i < arraysize(offsets); i++) { |
+ for (size_t i = 0; i < arraysize(offsets); i++) { |
builder.AddPosition(offsets[i], offsets[i], false); |
} |
CHECK(!builder.ToSourcePositionTable(isolate(), Handle<AbstractCode>()) |
@@ -62,7 +62,7 @@ TEST_F(SourcePositionTableTest, EncodeAscending) { |
int code_offset = 0; |
int source_position = 0; |
- for (int i = 0; i < arraysize(offsets); i++) { |
+ for (size_t i = 0; i < arraysize(offsets); i++) { |
code_offset += offsets[i]; |
source_position += offsets[i]; |
if (i % 2) { |
@@ -73,7 +73,7 @@ TEST_F(SourcePositionTableTest, EncodeAscending) { |
} |
// Also test negative offsets for source positions: |
- for (int i = 0; i < arraysize(offsets); i++) { |
+ for (size_t i = 0; i < arraysize(offsets); i++) { |
code_offset += offsets[i]; |
source_position -= offsets[i]; |
if (i % 2) { |