Fix the build.

This commit is contained in:
Victor Zverovich 2012-12-28 09:24:06 -08:00
parent 10108c75a5
commit 7b970285da

View File

@ -139,7 +139,7 @@ void FormatDecimal(char *buffer, uint64_t value, unsigned num_digits) {
#ifdef _MSC_VER #ifdef _MSC_VER
int signbit(double value) { int signbit(double value) {
if (value < 0) return 1; if (value < 0) return 1;
if (!isnan(value)) return 0; if (value == value) return 0;
int dec = 0, sign = 0; int dec = 0, sign = 0;
ecvt(value, 0, &dec, &sign); ecvt(value, 0, &dec, &sign);
return sign; return sign;