Fix the build.

This commit is contained in:
Victor Zverovich 2012-12-28 09:41:03 -08:00
parent 7b970285da
commit 529045b65d

View File

@ -322,7 +322,7 @@ void Formatter::FormatDouble(T value, const FormatSpec &spec, int precision) {
sign = (spec.flags & PLUS_FLAG) != 0 ? '+' : ' '; sign = (spec.flags & PLUS_FLAG) != 0 ? '+' : ' ';
} }
if (isnan(value)) { if (value != value) {
// Format NaN ourselves because sprintf's output is not consistent // Format NaN ourselves because sprintf's output is not consistent
// across platforms. // across platforms.
std::size_t size = 4; std::size_t size = 4;