Index: test/mjsunit/asm/zero-extend.js |
diff --git a/test/mjsunit/asm/zero-extend.js b/test/mjsunit/asm/zero-extend.js |
index a1f9da65a2166b85e83b03d7fc1ffa2b2e273685..3e34aac88bd4e48fc148e82fbfc56e98b89e930e 100644 |
--- a/test/mjsunit/asm/zero-extend.js |
+++ b/test/mjsunit/asm/zero-extend.js |
@@ -10,8 +10,8 @@ var foreign = {} |
var zext8 = (function Module(stdlib, foreign, heap) { |
"use asm"; |
function zext8(i) { |
- i = i|0; |
- return i & 0xff; |
+ i = i | 0; |
+ return (i & 0xff) | 0; |
} |
return { zext8: zext8 }; |
})(stdlib, foreign, buffer).zext8; |
@@ -25,8 +25,8 @@ assertEquals(0xff, zext8(0xff)); |
var zext16 = (function Module(stdlib, foreign, heap) { |
"use asm"; |
function zext16(i) { |
- i = i|0; |
- return i & 0xffff; |
+ i = i | 0; |
+ return (i & 0xffff) | 0; |
} |
return { zext16: zext16 }; |
})(stdlib, foreign, buffer).zext16; |