Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index e35ac5fbaf35f95e78866a4ba20e1dbf8f7f5d16..4e924215b958c5fac318f232f457d2a9fc0e04b5 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -315,7 +315,7 @@ static bool WeakPointerCleared = false; |
static void TestWeakGlobalHandleCallback(v8::Persistent<v8::Value> handle, |
void* id) { |
USE(handle); |
- if (1234 == reinterpret_cast<int>(id)) WeakPointerCleared = true; |
+ if (1234 == reinterpret_cast<intptr_t>(id)) WeakPointerCleared = true; |
} |
@@ -385,7 +385,7 @@ TEST(WeakGlobalHandlesMark) { |
static void TestDeleteWeakGlobalHandleCallback( |
v8::Persistent<v8::Value> handle, |
void* id) { |
- if (1234 == reinterpret_cast<int>(id)) WeakPointerCleared = true; |
+ if (1234 == reinterpret_cast<intptr_t>(id)) WeakPointerCleared = true; |
handle.Dispose(); |
} |