mirror of https://github.com/lukechilds/node.git
Browse Source
OR'ing together two large values, like `SSL_OP_ALL | SSL_OP_NO_TICKET`, produces a negative number. To wit: assert((0x80000000 | 0x4000) === -0x7fffc000); // true assert((0x80000000 | 0x4000) === 0x80004000); // false! It's easy to work around by doing a logical shift, like this: assert((0x80000000 | 0x4000) >>> 0 === 0x80004000); // true But that's not very intuitive. Let's be more lenient in what we accept.v0.9.4-release
Ben Noordhuis
12 years ago
1 changed files with 2 additions and 4 deletions
Loading…
Reference in new issue