Fix compilation on 64-bit Windows (a second try)
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 3 Sep 2010 12:31:43 +0000 (12:31 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 3 Sep 2010 12:31:43 +0000 (12:31 +0000)
TBR=pmehta@chromium.org
Review URL: http://codereview.chromium.org/3290009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5406 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/spaces.cc

index 42f1dcd..6770f16 100644 (file)
@@ -656,8 +656,8 @@ void MemoryAllocator::DeleteChunk(int chunk_id) {
   } else {
     LOG(DeleteEvent("PagedChunk", c.address()));
     ObjectSpace space = static_cast<ObjectSpace>(1 << c.owner()->identity());
-    int size = c.size();
-    FreeRawMemory(c.address(), c.size(), c.executable());
+    size_t size = c.size();
+    FreeRawMemory(c.address(), size, c.executable());
     PerformAllocationCallback(space, kAllocationActionFree, size);
   }
   c.init(NULL, 0, NULL);