Skip to content

Commit 68f2317

Browse files
committed
Revert "prevent "value out of bounds error""
This reverts commit 25b25f6.
1 parent 1338282 commit 68f2317

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/common-node.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
var querystring = require('querystring')
77

8-
var MAX_UINT = Math.pow(2, 32) - 1
9-
108
exports.IPV4_RE = /^[\d\.]+$/
119
exports.IPV6_RE = /^[\da-fA-F:]+$/
1210

@@ -27,7 +25,6 @@ exports.EVENT_NAMES = {
2725
}
2826

2927
function toUInt32 (n) {
30-
if (n > MAX_UINT) n = MAX_UINT
3128
var buf = new Buffer(4)
3229
buf.writeUInt32BE(n, 0)
3330
return buf

0 commit comments

Comments
 (0)