Fix off-by-one error in assertion.

Fixes test/simple/test-http-buffer-sanity.js
This commit is contained in:
Ben Noordhuis committed 2011-07-09 03:24:51 +02:00
1 parent dcf6955c10
commit 13a521e698
1 file changed
+1 -1
+1 -1
View File
@@ -292,7 +292,7 @@ class TCPWrap {
Local<Object> slab_obj = slab_v->ToObject();
slab = Buffer::Data(slab_obj);
assert(Buffer::Length(slab_obj) == SLAB_SIZE);
assert(SLAB_SIZE > slab_used);
assert(SLAB_SIZE >= slab_used);
// If less than 64kb is remaining on the slab allocate a new one.
if (SLAB_SIZE - slab_used < 64 * 1024) {