mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Fix off-by-one error in assertion.
Fixes test/simple/test-http-buffer-sanity.js
This commit is contained in:
1 parent
dcf6955c10
commit
13a521e698
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user