Index: test/mjsunit/asm/float32array-store-div.js |
diff --git a/test/mjsunit/asm/float32array-store-div.js b/test/mjsunit/asm/float32array-store-div.js |
index 78224f962b7971f2b86a5381e98e2bbd2c63ca13..45f3fd5f213fd7a6733f80d60e0c13cccd4f3f8b 100644 |
--- a/test/mjsunit/asm/float32array-store-div.js |
+++ b/test/mjsunit/asm/float32array-store-div.js |
@@ -6,8 +6,9 @@ function Module(stdlib, foreign, heap) { |
"use asm"; |
var MEM32 = new stdlib.Float32Array(heap); |
function foo(i) { |
- MEM32[0] = (i >>> 0) / 2; |
- return MEM32[0]; |
+ i = i | 0; |
+ MEM32[0] = +(i >>> 0) / 2.; |
+ return +MEM32[0]; |
} |
return { foo: foo }; |
} |