Index: test/cctest/test-alloc.cc |
diff --git a/test/cctest/test-alloc.cc b/test/cctest/test-alloc.cc |
index 1235b13b2db088d624241930208da124de2f9722..7921d2abe4459a39ed6e2ddd87ea7cbd9ea53e53 100644 |
--- a/test/cctest/test-alloc.cc |
+++ b/test/cctest/test-alloc.cc |
@@ -195,9 +195,9 @@ TEST(CodeRange) { |
Pseudorandom() % 5000 + 1; |
size_t allocated = 0; |
void* base = CodeRange::AllocateRawMemory(requested, &allocated); |
- blocks.Add(Block(base, allocated)); |
- current_allocated += allocated; |
- total_allocated += allocated; |
+ blocks.Add(Block(base, static_cast<int>(allocated))); |
+ current_allocated += static_cast<int>(allocated); |
+ total_allocated += static_cast<int>(allocated); |
} else { |
// Free a block. |
int index = Pseudorandom() % blocks.length(); |