mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Fix MSVC build
This commit is contained in:
parent
9cd0103dba
commit
aa9a94c8df
2
format.h
2
format.h
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user