Index: test/mjsunit/wasm/asm-wasm-i32.js |
diff --git a/test/mjsunit/wasm/asm-wasm-i32.js b/test/mjsunit/wasm/asm-wasm-i32.js |
index 6224e8fa1f49f2f9ad32394284208e6e2c6045d1..cffd1738c197cb85a6cb43bb208872a66fd9b7a7 100644 |
--- a/test/mjsunit/wasm/asm-wasm-i32.js |
+++ b/test/mjsunit/wasm/asm-wasm-i32.js |
@@ -67,13 +67,13 @@ function i32_mul(a, b) { |
function i32_div(a, b) { |
a = a | 0; |
b = b | 0; |
- return (a / b) | 0; |
+ return ((a | 0) / (b | 0)) | 0; |
} |
function i32_mod(a, b) { |
a = a | 0; |
b = b | 0; |
- return (a % b) | 0; |
+ return ((a | 0) % (b | 0)) | 0; |
} |
function i32_and(a, b) { |