aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-25 14:48:20 -0500
committerAlon Zakai <alonzakai@gmail.com>2013-02-25 14:48:20 -0500
commita0141bb1999899c82492a7a839a892dc53405acc (patch)
tree56f43b8c2756a2d3fe576ffd2e007fed968d192b /src/library.js
parente26971d4efce418fa303499c11eb6b216f54a60f (diff)
fix asm.js parsing of memcpy
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 885fe1e0..d0f73fdd 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4533,7 +4533,7 @@ LibraryManager.library = {
while ((i|0) < (num|0)) {
var v1 = {{{ makeGetValueAsm('p1', 'i', 'i8', true) }}};
var v2 = {{{ makeGetValueAsm('p2', 'i', 'i8', true) }}};
- if ((v1|0) != (v2|0)) return (v1|0) > (v2|0) ? 1 : -1;
+ if ((v1|0) != (v2|0)) return ((v1|0) > (v2|0) ? 1 : -1)|0;
i = (i+1)|0;
}
return 0;