Fix compile errors in r24826.
authoryangguo@chromium.org <yangguo@chromium.org>
Thu, 23 Oct 2014 08:56:54 +0000 (08:56 +0000)
committeryangguo@chromium.org <yangguo@chromium.org>
Thu, 23 Oct 2014 08:56:54 +0000 (08:56 +0000)
TBR=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/656793005

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24828 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/serialize.h

index 6cc3cf4..de2ef2b 100644 (file)
@@ -146,7 +146,7 @@ class AddressMapBase {
   }
 
   static uint32_t GetValue(HashMap::Entry* entry) {
-    return reinterpret_cast<uint32_t>(entry->value);
+    return static_cast<uint32_t>(reinterpret_cast<intptr_t>(entry->value));
   }
 
   static HashMap::Entry* LookupEntry(HashMap* map, HeapObject* obj,