aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMokhtar Naamani <mokhtar.naamani@gmail.com>2012-09-04 13:58:05 +0300
committerMokhtar Naamani <mokhtar.naamani@gmail.com>2012-09-04 13:58:24 +0300
commit51aaccd026f9aa7c9a222a218fe817454b020e2d (patch)
treefa39c946ac2abd819c496101dbb03c166c745a8b /src
parente9a8ed85db9f445a107e147493751feb477cfd5a (diff)
fixed htonl
Diffstat (limited to 'src')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 0eefea84..4997d6e8 100644
--- a/src/library.js
+++ b/src/library.js
@@ -6295,7 +6295,7 @@ LibraryManager.library = {
htonl: function(value) {
return ((value & 0xff) << 24) + ((value & 0xff00) << 8) +
- ((value & 0xff0000) >> 8) + ((value & 0xff000000) >> 24);
+ ((value & 0xff0000) >>> 8) + ((value & 0xff000000) >>> 24);
},
htons: function(value) {
return ((value & 0xff) << 8) + ((value & 0xff00) >> 8);