From 3bb1da0ff06bad207f83493012dde0e617df46cc Mon Sep 17 00:00:00 2001 From: "vegorov@chromium.org" Date: Wed, 9 Nov 2011 15:40:08 +0000 Subject: [PATCH] Fix Win64 compilation problems introduced by r9932. R=yangguo@chromium.org Review URL: http://codereview.chromium.org/8505019 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9941 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/heap.cc b/src/heap.cc index 6fe4928..0cbe13f 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -1011,12 +1011,13 @@ void PromotionQueue::RelocateQueueHead() { intptr_t* head_end = Min(front_, reinterpret_cast(p->body_limit())); - int entries_count = (head_end - head_start) / kEntrySizeInWords; + int entries_count = + static_cast(head_end - head_start) / kEntrySizeInWords; emergency_stack_ = new List(2 * entries_count); while (head_start != head_end) { - int size = *(head_start++); + int size = static_cast(*(head_start++)); HeapObject* obj = reinterpret_cast(*(head_start++)); emergency_stack_->Add(Entry(obj, size)); } -- 2.7.4