diff options
Diffstat (limited to 'src/node_buffer.cc')
-rw-r--r-- | src/node_buffer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 35ddde531b..e80611f877 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -206,7 +206,8 @@ void Buffer::Replace(char *data, size_t length, callback_(data_, callback_hint_); } else if (length_) { delete [] data_; - V8::AdjustAmountOfExternalAllocatedMemory(-(sizeof(Buffer) + length_)); + V8::AdjustAmountOfExternalAllocatedMemory( + -static_cast<intptr_t>(sizeof(Buffer) + length_)); } length_ = length; |