Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from marcosnils/master

Node Buffer update.
  • Loading branch information...
commit 4d79feb38fdbb28b158c37418ef747573c1499fc 2 parents 861de94 + 12ed25f
@pkrumins authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bufferdiff.cc
View
4 bufferdiff.cc
@@ -28,11 +28,11 @@ EqBuf(const Arguments &args)
Buffer *buf1 = ObjectWrap::Unwrap<Buffer>(args[0]->ToObject());
Buffer *buf2 = ObjectWrap::Unwrap<Buffer>(args[1]->ToObject());
- if (buf1->length() != buf2->length())
+ if (Buffer::Length(buf1) != Buffer::Length(buf2))
return scope.Close(False());
return scope.Close(
- Boolean::New(memcmp(buf1->data(), buf2->data(), buf1->length())==0)
+ Boolean::New(memcmp(Buffer::Data(buf1), Buffer::Data(buf2), Buffer::Length(buf1))==0)
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.