Index: test/mjsunit/asm/word32ror.js |
diff --git a/test/mjsunit/asm/word32ror.js b/test/mjsunit/asm/word32ror.js |
index 9535bdee8a5e63c60133569200deb0a158339070..6891cd124f3150f7f00a1a30aef61506c0faa34d 100644 |
--- a/test/mjsunit/asm/word32ror.js |
+++ b/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; |