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

Unified Diff: test/mjsunit/asm/int32mod.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/int32div.js ('k') | test/mjsunit/asm/int32mod-constant.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/int32mod.js
diff --git a/test/mjsunit/asm/int32mod.js b/test/mjsunit/asm/int32mod.js
index 22fa81384d49af081f32a3a78b51cebf26d4dee8..44513e3292340cdf4603c472c6719f332c9e5bbe 100644
--- a/test/mjsunit/asm/int32mod.js
+++ b/test/mjsunit/asm/int32mod.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/int32div.js ('k') | test/mjsunit/asm/int32mod-constant.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698