From 68f23178708f6534279585ecdaf294ae7c1b0cf2 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 3 May 2015 16:46:39 -0700 Subject: [PATCH] Revert "prevent "value out of bounds error"" This reverts commit 25b25f663cde574b775280aad6c9cfddc9dde14d. --- lib/common-node.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/common-node.js b/lib/common-node.js index 8ca9593..12c45b2 100644 --- a/lib/common-node.js +++ b/lib/common-node.js @@ -5,8 +5,6 @@ var querystring = require('querystring') -var MAX_UINT = Math.pow(2, 32) - 1 - exports.IPV4_RE = /^[\d\.]+$/ exports.IPV6_RE = /^[\da-fA-F:]+$/ @@ -27,7 +25,6 @@ exports.EVENT_NAMES = { } function toUInt32 (n) { - if (n > MAX_UINT) n = MAX_UINT var buf = new Buffer(4) buf.writeUInt32BE(n, 0) return buf