Backed out changeset 002714e2ccba (bug 1222866) for m2 test failures

This commit is contained in:
Carsten "Tomcat" Book 2015-11-20 08:28:09 +01:00
parent 0c995ca23b
commit c0261d4a01

View File

@ -93,9 +93,7 @@ public:
if (mozilla::IsInfinite<double>(aValue)) {
return FromInfinity();
}
// Due to internal double representation, this
// operation is not commutative, do not attempt to simplify.
double val = (aValue + .0000005) * USECS_PER_S;
double val = aValue * USECS_PER_S;
if (val >= double(INT64_MAX)) {
return FromMicroseconds(INT64_MAX);
} else if (val <= double(INT64_MIN)) {