From: Feross Aboukhadijeh Date: Mon, 20 Apr 2015 21:29:18 +0000 (-0700) Subject: iojs style X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=acb45f33a29950c6b1322c3bca5ae743d2f4ba30;p=buffer.git iojs style --- diff --git a/index.js b/index.js index b150c25..76269d1 100644 --- 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 }