| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 2e124beaebd63d4be7caf9a9b3ef7f20e18ec50e..373fab924473be686d89a747a7102d773b768e4b 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -801,7 +801,8 @@ static void ArrayBufferWeakCallback(v8::Isolate* external_isolate,
|
|
|
| size_t allocated_length = ArrayBufferAllocatedLength(
|
| isolate, JSArrayBuffer::cast(*internal_object));
|
| - isolate->heap()->AdjustAmountOfExternalAllocatedMemory(-allocated_length);
|
| + isolate->heap()->AdjustAmountOfExternalAllocatedMemory(
|
| + -static_cast<intptr_t>(allocated_length));
|
| if (data != NULL)
|
| free(data);
|
| object.Dispose(external_isolate);
|
|
|