From 70804bacf54b9d0aef050d7215e00e7fb3a774d6 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Fri, 24 Feb 2012 09:45:27 +0000 Subject: [PATCH] Fix compilation issue on Win64. R=yangguo@chromium.org Review URL: https://chromiumcodereview.appspot.com/9465003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10818 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/spaces.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spaces.cc b/src/spaces.cc index de738fba8..1fbad551a 100644 --- a/src/spaces.cc +++ b/src/spaces.cc @@ -699,7 +699,7 @@ int MemoryAllocator::CodePageGuardStartOffset() { int MemoryAllocator::CodePageGuardSize() { - return OS::CommitPageSize(); + return static_cast(OS::CommitPageSize()); } @@ -713,7 +713,7 @@ int MemoryAllocator::CodePageAreaStartOffset() { int MemoryAllocator::CodePageAreaEndOffset() { // We are guarding code pages: the last OS page will be protected as // non-writable. - return Page::kPageSize - OS::CommitPageSize(); + return Page::kPageSize - static_cast(OS::CommitPageSize()); } -- 2.34.1