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(sizeof(Buffer) + length_)); } length_ = length;