Index: base/values.cc |
diff --git a/base/values.cc b/base/values.cc |
index 52876cf2c4fffff5b932d6c427418fedd75046a2..0e1e2b1bdd7740f442d0327dd472d5d9ea37946e 100644 |
--- a/base/values.cc |
+++ b/base/values.cc |
@@ -7,9 +7,9 @@ |
#include <string.h> |
#include <algorithm> |
+#include <cmath> |
#include <ostream> |
-#include "base/float_util.h" |
#include "base/json/json_writer.h" |
#include "base/logging.h" |
#include "base/move.h" |
@@ -175,7 +175,7 @@ FundamentalValue::FundamentalValue(int in_value) |
FundamentalValue::FundamentalValue(double in_value) |
: Value(TYPE_DOUBLE), double_value_(in_value) { |
- if (!IsFinite(double_value_)) { |
+ if (!std::isfinite(double_value_)) { |
NOTREACHED() << "Non-finite (i.e. NaN or positive/negative infinity) " |
<< "values cannot be represented in JSON"; |
double_value_ = 0.0; |