Title: [173376] trunk/Source/WTF
Revision
173376
Author
jber...@webkit.org
Date
2014-09-08 07:45:37 -0700 (Mon, 08 Sep 2014)

Log Message

More build fixes after r173374.

* wtf/dtoa/strtod.cc:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (173375 => 173376)


--- trunk/Source/WTF/ChangeLog	2014-09-08 14:33:58 UTC (rev 173375)
+++ trunk/Source/WTF/ChangeLog	2014-09-08 14:45:37 UTC (rev 173376)
@@ -1,5 +1,11 @@
 2014-09-08  Jessie Berlin  <jber...@apple.com>
 
+        More build fixes after r173374.
+
+        * wtf/dtoa/strtod.cc:
+
+2014-09-08  Jessie Berlin  <jber...@apple.com>
+
         Build fix after r173374.
 
         * wtf/dtoa/strtod.cc:

Modified: trunk/Source/WTF/wtf/dtoa/strtod.cc (173375 => 173376)


--- trunk/Source/WTF/wtf/dtoa/strtod.cc	2014-09-08 14:33:58 UTC (rev 173375)
+++ trunk/Source/WTF/wtf/dtoa/strtod.cc	2014-09-08 14:45:37 UTC (rev 173376)
@@ -38,11 +38,13 @@
 namespace WTF {
 
 namespace double_conversion {
-    
+
+#if defined(DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS)
     // 2^53 = 9007199254740992.
     // Any integer with at most 15 decimal digits will hence fit into a double
     // (which has a 53bit significand) without loss of precision.
     static const int kMaxExactDoubleIntegerDecimalDigits = 15;
+#endif
     // 2^64 = 18446744073709551616 > 10^19
     static const int kMaxUint64DecimalDigits = 19;
     
@@ -58,7 +60,7 @@
     // 2^64 = 18446744073709551616
     static const uint64_t kMaxUint64 = UINT64_2PART_C(0xFFFFFFFF, FFFFFFFF);
     
-    
+#if defined(DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS)
     static const double exact_powers_of_ten[] = {
         1.0,  // 10^0
         10.0,
@@ -86,6 +88,7 @@
         10000000000000000000000.0
     };
     static const int kExactPowersOfTenSize = ARRAY_SIZE(exact_powers_of_ten);
+#endif
     
     // Maximum number of significant digits in the decimal representation.
     // In fact the value is 772 (see conversions.cc), but to give us some margin
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to