using ::isnan to avoid conflicts with std::isnan for C++11 build.
Change-Id: I057b44eff04c3b0062a4fd4307ce6e4ca1eb952b
This commit is contained in:
parent
e6484d306d
commit
a2b7937777
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue