From 7aeab4ca6e7ea35788132d6e46f3743233dd0485 Mon Sep 17 00:00:00 2001 From: "mikhail.naganov@gmail.com" Date: Tue, 6 Dec 2011 22:08:46 +0000 Subject: [PATCH] Obligatory fix for Win64. BUG=v8:1832 TEST=none TBR=vitalyr@chromium.org Review URL: http://codereview.chromium.org/8771051 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10183 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/profile-generator-inl.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/profile-generator-inl.h b/src/profile-generator-inl.h index acaf2f1b0e..7a70b013bb 100644 --- a/src/profile-generator-inl.h +++ b/src/profile-generator-inl.h @@ -108,9 +108,10 @@ HeapObject* V8HeapExplorer::GetNthGcSubrootObject(int delta) { int V8HeapExplorer::GetGcSubrootOrder(HeapObject* subroot) { - return (reinterpret_cast(subroot) - - reinterpret_cast(kFirstGcSubrootObject)) / - HeapObjectsMap::kObjectIdStep; + return static_cast( + (reinterpret_cast(subroot) - + reinterpret_cast(kFirstGcSubrootObject)) / + HeapObjectsMap::kObjectIdStep); }