Merge pull request #508 from pherl/nanfix
using ::isnan to avoid conflicts with std::isnan for C++11 build.
This commit is contained in:
commit
d6286a9f41
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