Fix MSVC build

This commit is contained in:
Victor Zverovich 2013-02-28 11:13:43 -08:00
parent 9cd0103dba
commit aa9a94c8df

View File

@ -192,7 +192,7 @@ inline int SignBit(double value) {
if (value == value) return 0;
int dec = 0, sign = 0;
char buffer[2]; // The buffer size must be >= 2 or _ecvt_s will fail.
_ecvt_s(&buffer, sizeof(buffer), value, 0, &dec, &sign);
_ecvt_s(buffer, sizeof(buffer), value, 0, &dec, &sign);
return sign;
}