From c773148bb90bc155415dd5ccd7a0613388f9b18f Mon Sep 17 00:00:00 2001 From: "lrn@chromium.org" Date: Wed, 9 Dec 2009 16:40:54 +0000 Subject: [PATCH] Fix Win64 build problem. Review URL: http://codereview.chromium.org/475003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3442 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/serialize.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/serialize.cc b/src/serialize.cc index 899e2e7a59..6ce51cbc7f 100644 --- a/src/serialize.cc +++ b/src/serialize.cc @@ -1,4 +1,4 @@ -// Copyright 2006-2008 the V8 project authors. All rights reserved. +/// Copyright 2006-2008 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: @@ -55,9 +55,8 @@ class SerializationAddressMapper { static int MappedTo(HeapObject* obj) { ASSERT(IsMapped(obj)); - return reinterpret_cast(serialization_map_->Lookup(Key(obj), - Hash(obj), - false)->value); + return static_cast(reinterpret_cast( + serialization_map_->Lookup(Key(obj), Hash(obj), false)->value)); } static void Map(HeapObject* obj, int to) { @@ -81,7 +80,7 @@ class SerializationAddressMapper { } static uint32_t Hash(HeapObject* obj) { - return reinterpret_cast(obj->address()); + return static_cast(reinterpret_cast(obj->address())); } static void* Key(HeapObject* obj) {