blob: 28ef5400eddfb72b165688bf92c39f071957a293 (
plain)
1
2
3
4
5
6
7
8
9
|
function f(x) {
return (x | 0) - (-4294967295 | 0) + -2147483647
}
x = [1, 4294967295]
for (var j = 0; j < 2; ++j) {
for (var k = 0; k < 3; ++k) {
assertEq(f(x[j]), -2147483647 - 2 * j);
}
}
|