summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/asm/word32ror.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/asm/word32ror.js')
-rw-r--r--deps/v8/test/mjsunit/asm/word32ror.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/asm/word32ror.js b/deps/v8/test/mjsunit/asm/word32ror.js
index 9535bdee8a..6891cd124f 100644
--- a/deps/v8/test/mjsunit/asm/word32ror.js
+++ b/deps/v8/test/mjsunit/asm/word32ror.js
@@ -11,7 +11,7 @@ var rol = (function Module(stdlib, foreign, heap) {
function rol(x, y) {
x = x | 0;
y = y | 0;
- return (x << y) | (x >>> (32 - y));
+ return (x << y) | (x >>> (32 - y)) | 0;
}
return { rol: rol };
})(stdlib, foreign, heap).rol;
@@ -26,7 +26,7 @@ var ror = (function Module(stdlib, foreign, heap) {
function ror(x, y) {
x = x | 0;
y = y | 0;
- return (x << (32 - y)) | (x >>> y);
+ return (x << (32 - y)) | (x >>> y) | 0;
}
return { ror: ror };
})(stdlib, foreign, heap).ror;