Commit aa9a94c8 authored by Victor Zverovich's avatar Victor Zverovich

Fix MSVC build

parent 9cd0103d
...@@ -192,7 +192,7 @@ inline int SignBit(double value) { ...@@ -192,7 +192,7 @@ inline int SignBit(double value) {
if (value == value) return 0; if (value == value) return 0;
int dec = 0, sign = 0; int dec = 0, sign = 0;
char buffer[2]; // The buffer size must be >= 2 or _ecvt_s will fail. 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; return sign;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment