Index: test/cctest/test-types.cc |
diff --git a/test/cctest/test-types.cc b/test/cctest/test-types.cc |
index 6cdd46c8665d042881a00feb014885826a2803ea..4c1ed3c8f9837663e24dfafd6b3313fa4e425db7 100644 |
--- a/test/cctest/test-types.cc |
+++ b/test/cctest/test-types.cc |
@@ -73,8 +73,8 @@ class Types { |
} |
while (types.size() < kMaxTypes) { |
- size_t i = rng.NextInt(types.size()); |
- size_t j = rng.NextInt(types.size()); |
+ size_t i = rng.NextInt(static_cast<int>(types.size())); |
+ size_t j = rng.NextInt(static_cast<int>(types.size())); |
if (i != j) types.push_back(Type::Union(types[i], types[j], region)); |
} |
} |