mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-01 22:20:06 +00:00
Fix the build.
This commit is contained in:
parent
10108c75a5
commit
7b970285da
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user