Skip to content
Browse files

Avoid compiler warning about negating unsigned value

  • Loading branch information...
1 parent e8fd808 commit 9263213d8ec67af07498987cb3684a7623bc1dd4 @piscisaureus piscisaureus committed
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;

0 comments on commit 9263213

Please sign in to comment.
Something went wrong with that request. Please try again.