Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid compiler warning about negating unsigned value

  • Loading branch information...
commit 9263213d8ec67af07498987cb3684a7623bc1dd4 1 parent e8fd808
@piscisaureus piscisaureus authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/node_buffer.cc
View
3  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;
Please sign in to comment.
Something went wrong with that request. Please try again.