From 5ae1ddd78666dee6202a406dbd8e0ab7f6cbdebc Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Mon, 5 Dec 2011 07:57:44 +0000 Subject: [PATCH] Fixing windows build. "src\store-buffer.cc(72) : warning C4244: 'initializing' : conversion from 'intptr_t' to 'int', possible loss of data" Review URL: http://codereview.chromium.org/8804003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10146 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/store-buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store-buffer.cc b/src/store-buffer.cc index 1569305308..c0315f27a8 100644 --- a/src/store-buffer.cc +++ b/src/store-buffer.cc @@ -69,7 +69,7 @@ void StoreBuffer::Setup() { // Don't know the alignment requirements of the OS, but it is certainly not // less than 0xfff. ASSERT((reinterpret_cast(old_start_) & 0xfff) == 0); - int initial_length = OS::CommitPageSize() / kPointerSize; + int initial_length = static_cast(OS::CommitPageSize() / kPointerSize); ASSERT(initial_length > 0); ASSERT(initial_length <= kOldStoreBufferLength); old_limit_ = old_start_ + initial_length;