Commit d6286a9f authored by Jisi Liu's avatar Jisi Liu

Merge pull request #508 from pherl/nanfix

using ::isnan to avoid conflicts with std::isnan for C++11 build.
parents e6484d30 a2b79377
......@@ -302,7 +302,7 @@ bool IsMap(const google::protobuf::Field& field,
string DoubleAsString(double value) {
if (value == std::numeric_limits<double>::infinity()) return "Infinity";
if (value == -std::numeric_limits<double>::infinity()) return "-Infinity";
if (isnan(value)) return "NaN";
if (::isnan(value)) return "NaN";
return SimpleDtoa(value);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment