aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-23 18:40:59 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-23 18:40:59 -0700
commit430dcb4c1533a7c2e9486a2bcbb4e0bda3025c0c (patch)
tree46bb558af2285e374a8f2bb120423bf04c51434f
parent57331dbc8dbc8b88c29f1067a32d5631fda0bcc3 (diff)
add coercion in strncasecmp
-rw-r--r--src/library.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js
index 7fbe335d..04878ffc 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4501,8 +4501,8 @@ LibraryManager.library = {
px = px|0; py = py|0; n = n|0;
var i = 0, x = 0, y = 0;
while ((i>>>0) < (n>>>0)) {
- x = _tolower({{{ makeGetValueAsm('px', 'i', 'i8', 0, 1) }}});
- y = _tolower({{{ makeGetValueAsm('py', 'i', 'i8', 0, 1) }}});
+ x = _tolower({{{ makeGetValueAsm('px', 'i', 'i8', 0, 1) }}})|0;
+ y = _tolower({{{ makeGetValueAsm('py', 'i', 'i8', 0, 1) }}})|0;
if (((x|0) == (y|0)) & ((x|0) == 0)) return 0;
if ((x|0) == 0) return -1;
if ((y|0) == 0) return 1;