aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-24 16:28:51 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-24 16:29:04 -0700
commitde92e0804c77d9ad5a21edd0b9bb92dec8e36b06 (patch)
tree65ce07821eaae6deb0514885ab29478549a5749b
parent07dbdeceb6077db05a9d664a7d4c801a2382562a (diff)
fix asm validation of llvm_uadd_with_overflow_i64
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 65e1cb8e..957f69bd 100644
--- a/src/library.js
+++ b/src/library.js
@@ -7523,7 +7523,7 @@ LibraryManager.library = {
h = (b + d)>>>0;
overflow = ((h>>>0) < (b>>>0))|0; // Return whether addition overflowed even the high word.
h = (h + (((l>>>0) < (a>>>0))|0))>>>0; // Add carry from low word to high word on overflow.
- overflow = overflow | (h == 0); // Check again for overflow.
+ overflow = overflow | (!h); // Check again for overflow.
{{{ makeStructuralReturn(['l|0', 'h', 'overflow'], true) }}};
},