diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-15 12:02:12 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-15 12:05:48 -0700 |
commit | 49fe4a8be40bd907c61f97796c145ef5582bb71f (patch) | |
tree | 4296a9156d24fdd5784c24328de97c296d5c5b29 | |
parent | 38a151b96c640d81bdeea41428fa509ebebea003 (diff) |
fix strncasecmp comparison signedness
-rw-r--r-- | src/library.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index 5e5181c1..45187d8d 100644 --- a/src/library.js +++ b/src/library.js @@ -4465,7 +4465,7 @@ LibraryManager.library = { i = (i + 1)|0; continue; } else { - return ((x|0) > (y|0) ? 1 : -1)|0; + return ((x>>>0) > (y>>>0) ? 1 : -1)|0; } } return 0; |