]> zoso.dev Git - buffer.git/commitdiff
iojs style
authorFeross Aboukhadijeh <feross@feross.org>
Mon, 20 Apr 2015 21:29:18 +0000 (14:29 -0700)
committerFeross Aboukhadijeh <feross@feross.org>
Mon, 20 Apr 2015 21:29:18 +0000 (14:29 -0700)
index.js

index b150c253e4461cfd77dcca98457d187b509b5d94..76269d183b246d3cf90fd7e69b741f33595d597f 100644 (file)
--- a/index.js
+++ b/index.js
@@ -123,7 +123,8 @@ function Buffer (subject, encoding) {
     }
   }
 
-  if (length > 0 && length <= Buffer.poolSize) self.parent = rootParent
+  var fromPool = length !== 0 && length <= Buffer.poolSize >>> 1
+  if (fromPool) self.parent = rootParent
 
   return self
 }