Fixed compilation error on Win64.
authorhpayer@chromium.org <hpayer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 11 Dec 2012 20:19:37 +0000 (20:19 +0000)
committerhpayer@chromium.org <hpayer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 11 Dec 2012 20:19:37 +0000 (20:19 +0000)
BUG=

Review URL: https://codereview.chromium.org/11538010

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

src/spaces.cc

index ab3bcf2d84c8d1a19912380d7d5f4a98764b2df9..dfdd813f20f1b551a34c01b369278c58d6ce5b0e 100644 (file)
@@ -1937,7 +1937,7 @@ void FreeListCategory::Reset() {
 
 
 intptr_t FreeListCategory::CountFreeListItemsInList(Page* p) {
-  intptr_t sum = 0;
+  int sum = 0;
   FreeListNode* n = top_;
   while (n != NULL) {
     if (Page::FromAddress(n->address()) == p) {
@@ -1951,7 +1951,7 @@ intptr_t FreeListCategory::CountFreeListItemsInList(Page* p) {
 
 
 intptr_t FreeListCategory::EvictFreeListItemsInList(Page* p) {
-  intptr_t sum = 0;
+  int sum = 0;
   FreeListNode** n = &top_;
   while (*n != NULL) {
     if (Page::FromAddress((*n)->address()) == p) {