From bb7825051b86505451a1ba53112f3a9c8b3b3843 Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Fri, 3 Sep 2010 12:00:05 +0000 Subject: [PATCH] Fix compilation on 64-bit Windows TBR=pmehta@chromium.org Review URL: http://codereview.chromium.org/3333015 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5404 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/spaces.cc | 2 +- src/spaces.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spaces.cc b/src/spaces.cc index b366f39..42f1dcd 100644 --- a/src/spaces.cc +++ b/src/spaces.cc @@ -395,7 +395,7 @@ void MemoryAllocator::FreeRawMemory(void* mem, void MemoryAllocator::PerformAllocationCallback(ObjectSpace space, AllocationAction action, - int size) { + size_t size) { for (int i = 0; i < memory_allocation_callbacks_.length(); ++i) { MemoryAllocationCallbackRegistration registration = memory_allocation_callbacks_[i]; diff --git a/src/spaces.h b/src/spaces.h index c33ab2c..9ffa940 100644 --- a/src/spaces.h +++ b/src/spaces.h @@ -569,7 +569,7 @@ class MemoryAllocator : public AllStatic { Executability executable); static void PerformAllocationCallback(ObjectSpace space, AllocationAction action, - int size); + size_t size); static void AddMemoryAllocationCallback(MemoryAllocationCallback callback, ObjectSpace space, -- 2.7.4