Reviewers: Mads Ager,

Description:
Fix 64 bit build.

Please review this at http://codereview.chromium.org/442003

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/serialize.cc


Index: src/serialize.cc
===================================================================
--- src/serialize.cc    (revision 3360)
+++ src/serialize.cc    (working copy)
@@ -55,9 +55,9 @@

    static int MappedTo(HeapObject* obj) {
      ASSERT(IsMapped(obj));
-    return reinterpret_cast<int>(serialization_map_->Lookup(Key(obj),
-                                 Hash(obj),
-                                 false)->value);
+    return reinterpret_cast<intptr_t>(serialization_map_->Lookup(Key(obj),
+                                      Hash(obj),
+                                      false)->value);
    }

    static void Map(HeapObject* obj, int to) {
@@ -81,7 +81,7 @@
    }

    static uint32_t Hash(HeapObject* obj) {
-    return reinterpret_cast<uint32_t>(obj->address());
+    return reinterpret_cast<intptr_t>(obj->address());
    }

    static void* Key(HeapObject* obj) {



--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to