| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e544b1c commit 200429e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,8 +79,8 @@ Object.setPrototypeOf(SlowBuffer, Uint8Array); | |||
| 79 | 79 | ||
| 80 | 80 | ||
| 81 | 81 | function allocate(size) { | |
| 82 | - if (size === 0) { | ||
| 83 | - return createBuffer(size); | ||
| 82 | + if (size <= 0) { | ||
| 83 | + return createBuffer(0); | ||
| 84 | 84 | } | |
| 85 | 85 | if (size < (Buffer.poolSize >>> 1)) { | |
| 86 | 86 | if (size > (poolSize - poolOffset)) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments