From 7b970285da09b98864da48f8562c36daf041ea5d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 28 Dec 2012 09:24:06 -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 6779973f..7ad0908b 100644 --- a/format.cc +++ b/format.cc @@ -139,7 +139,7 @@ void FormatDecimal(char *buffer, uint64_t value, unsigned num_digits) { #ifdef _MSC_VER int signbit(double value) { if (value < 0) return 1; - if (!isnan(value)) return 0; + if (value == value) return 0; int dec = 0, sign = 0; ecvt(value, 0, &dec, &sign); return sign;