aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-19 16:42:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-19 16:42:57 -0700
commitdea71e919af37eba2f1253b59580765eda6cb8b1 (patch)
treeddbac08a64e073216a1ae6dc1937b04909a02e2a /src
parent003042c91b1bca85bc7244bc6168e68caef86e08 (diff)
parent2e2fa6839421d97c096a964f04d24970f3b13217 (diff)
Merge pull request #974 from waywardmonkeys/fix-ctpop
Fix large values in llvm_ctpop_i32().
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 d5f11cf3..793a78d7 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4950,7 +4950,7 @@ LibraryManager.library = {
var ret = 0;
while (x) {
if (x&1) ret++;
- x >>= 1;
+ x >>>= 1;
}
return ret;
},