From 529045b65debcf45e87b9cb5bb1a8b47b4d26199 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 28 Dec 2012 09:41:03 -0800 Subject: [PATCH] Fix the build. --- format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.cc b/format.cc index 7ad0908b..94b3aca2 100644 --- a/format.cc +++ b/format.cc @@ -322,7 +322,7 @@ void Formatter::FormatDouble(T value, const FormatSpec &spec, int precision) { sign = (spec.flags & PLUS_FLAG) != 0 ? '+' : ' '; } - if (isnan(value)) { + if (value != value) { // Format NaN ourselves because sprintf's output is not consistent // across platforms. std::size_t size = 4;