components/desktop/firefox/patches/firefox-16-mftt_infinity.patch
changeset 7309 2655ef11c386
parent 7308 69f1f375673e
child 7310 88d40c6177a1
--- a/components/desktop/firefox/patches/firefox-16-mftt_infinity.patch	Tue Nov 15 03:50:06 2016 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-We use a different function from the one in ieeefp.h.
-This may be a studio specific patch. Need to investigate if this can be
-removed.
-
-diff --git a/mfbt/decimal/Decimal.cpp b/mfbt/decimal/Decimal.cpp
---- a/mfbt/decimal/Decimal.cpp
-+++ b/mfbt/decimal/Decimal.cpp
-@@ -33,6 +33,7 @@
- 
- #include <algorithm>
- #include <float.h>
-+#include <ieeefp.h>
- 
- using namespace moz_decimal_utils;
- 
-@@ -686,13 +687,13 @@
- 
- Decimal Decimal::fromDouble(double doubleValue)
- {
--    if (std::isfinite(doubleValue))
-+    if (finite(doubleValue))
-         return fromString(mozToString(doubleValue));
- 
--    if (std::isinf(doubleValue))
--        return infinity(doubleValue < 0 ? Negative : Positive);
-+    if (isnand(doubleValue))
-+        return nan();
- 
--    return nan();
-+    return infinity(doubleValue < 0 ? Negative : Positive);
- }
- 
- Decimal Decimal::fromString(const String& str)