Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: test/cctest/test-api.cc

Issue 197083002: Win64 fix for r19833. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index e7ea3bc19c32175327efbbc266372a2b0663f539..4ee0eb71e32f8137c32a67757321f66162bab603 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -3515,25 +3515,25 @@ static void TestPersistentValueMap() {
v8::internal::GlobalHandles* global_handles =
reinterpret_cast<v8::internal::Isolate*>(isolate)->global_handles();
int initial_handle_count = global_handles->global_handles_count();
- CHECK_EQ(0, map.Size());
+ CHECK_EQ(0, static_cast<int>(map.Size()));
{
HandleScope scope(isolate);
Local<v8::Object> obj = map.Get(7);
CHECK(obj.IsEmpty());
Local<v8::Object> expected = v8::Object::New(isolate);
map.Set(7, expected);
- CHECK_EQ(1, map.Size());
+ CHECK_EQ(1, static_cast<int>(map.Size()));
obj = map.Get(7);
CHECK_EQ(expected, obj);
v8::UniquePersistent<v8::Object> removed = map.Remove(7);
- CHECK_EQ(0, map.Size());
+ CHECK_EQ(0, static_cast<int>(map.Size()));
CHECK(expected == removed);
removed = map.Remove(7);
CHECK(removed.IsEmpty());
map.Set(8, expected);
- CHECK_EQ(1, map.Size());
+ CHECK_EQ(1, static_cast<int>(map.Size()));
map.Set(8, expected);
- CHECK_EQ(1, map.Size());
+ CHECK_EQ(1, static_cast<int>(map.Size()));
}
CHECK_EQ(initial_handle_count + 1, global_handles->global_handles_count());
if (is_weak) {
@@ -3542,7 +3542,7 @@ static void TestPersistentValueMap() {
} else {
map.Clear();
}
- CHECK_EQ(0, map.Size());
+ CHECK_EQ(0, static_cast<int>(map.Size()));
CHECK_EQ(initial_handle_count, global_handles->global_handles_count());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698