Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Unified Diff: test/mjsunit/asm/int32modb.js

Issue 2663243002: [asm] Fix lots of invalid asm.js tests (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/asm/int32mod-constant.js ('k') | test/mjsunit/asm/int8array-negative-offset.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/int32modb.js
diff --git a/test/mjsunit/asm/int32modb.js b/test/mjsunit/asm/int32modb.js
index 5081b49ae5c83f8fd0db6bd05affd7b2b453e865..f8c034279be3de6ff35b8af3b3f50b0063c948f8 100644
--- a/test/mjsunit/asm/int32modb.js
+++ b/test/mjsunit/asm/int32modb.js
@@ -11,7 +11,7 @@ var mod = (function Module(stdlib, foreign, heap) {
function mod(dividend, divisor) {
dividend = dividend|0;
divisor = divisor|0;
- return (dividend % divisor) | 0;
+ return ((dividend | 0) % (divisor | 0)) | 0;
}
return { mod: mod };
})(stdlib, foreign, heap).mod;
« no previous file with comments | « test/mjsunit/asm/int32mod-constant.js ('k') | test/mjsunit/asm/int8array-negative-offset.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698