aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) }}};
},