mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1147405: Have math_ceil_handle use setNumber rather than setDouble; r=nbp
This commit is contained in:
parent
9c983a74fe
commit
9d90deaf90
@ -419,9 +419,8 @@ var uceFault_ceil_number = eval(uneval(uceFault).replace('uceFault', 'uceFault_c
|
||||
function rceil_number(i) {
|
||||
var x = Math.ceil(-i - 0.12010799100);
|
||||
if (uceFault_ceil_number(i) || uceFault_ceil_number(i))
|
||||
assertEq(x, - i);
|
||||
// NYI: uses MMathFunction and not MCeil.
|
||||
// assertRecoveredOnBailout(x, true);
|
||||
assertEq(x, -i);
|
||||
assertRecoveredOnBailout(x, true);
|
||||
return i;
|
||||
}
|
||||
|
||||
|
@ -313,7 +313,7 @@ js::math_ceil_handle(JSContext *cx, HandleValue v, MutableHandleValue res)
|
||||
return false;
|
||||
|
||||
double result = math_ceil_impl(d);
|
||||
res.setDouble(result);
|
||||
res.setNumber(result);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user