From c5b6e76ada717fb6cea19a7876d9ccd0db6ef68b Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Thu, 10 Apr 2014 09:14:46 +0000 Subject: [PATCH] Fix compiler warnings on Win64. TEST=cctest/test-types TBR=rossberg@chromium.org Review URL: https://codereview.chromium.org/232773002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20643 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-types.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cctest/test-types.cc b/test/cctest/test-types.cc index 6cdd46c..4c1ed3c 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(types.size())); + size_t j = rng.NextInt(static_cast(types.size())); if (i != j) types.push_back(Type::Union(types[i], types[j], region)); } } -- 2.7.4