Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 3283c95648ee8ee87ca07cff5ff936ec0284fbdc..3b3dc44c6b8fd5721de390da0273c8dd01b6df77 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -411,7 +411,7 @@ void Heap::PrintShortHeapStatistics() { |
this->Available() / KB, |
this->CommittedMemory() / KB); |
PrintPID("External memory reported: %6" V8_PTR_PREFIX "d KB\n", |
- amount_of_external_allocated_memory_ / KB); |
+ static_cast<intptr_t>(amount_of_external_allocated_memory_ / KB)); |
PrintPID("Total time spent in GC : %.1f ms\n", total_gc_time_ms_); |
} |
@@ -6578,7 +6578,7 @@ intptr_t Heap::PromotedSpaceSizeOfObjects() { |
} |
-intptr_t Heap::PromotedExternalMemorySize() { |
+int64_t Heap::PromotedExternalMemorySize() { |
if (amount_of_external_allocated_memory_ |
<= amount_of_external_allocated_memory_at_last_global_gc_) return 0; |
return amount_of_external_allocated_memory_ |