Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 9df3ff882e61479fe3953a122d74a3705a103de6..58d4326cc86b6a46641f2f13cf205e20afb97596 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -700,7 +700,7 @@ void Runtime::FreeArrayBuffer(Isolate* isolate, |
isolate, phantom_array_buffer->byte_length()); |
isolate->heap()->AdjustAmountOfExternalAllocatedMemory( |
- -static_cast<intptr_t>(allocated_length)); |
+ -static_cast<int64_t>(allocated_length)); |
CHECK(V8::ArrayBufferAllocator() != NULL); |
V8::ArrayBufferAllocator()->Free( |
phantom_array_buffer->backing_store(), |