Browse Source

Avoid compiler warning about negating unsigned value

v0.8.8-release
Bert Belder 13 years ago
parent
commit
9263213d8e
  1. 3
      src/node_buffer.cc

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;

Loading…
Cancel
Save