mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-29 00:35:03 +00:00
Fix an MSVC warning (#234)
This commit is contained in:
parent
0519737b95
commit
f60c4b9947
2
format.h
2
format.h
@ -261,7 +261,7 @@ class numeric_limits<fmt::internal::DummyInt> :
|
|||||||
using namespace fmt::internal;
|
using namespace fmt::internal;
|
||||||
if (sizeof(isnan(x)) == sizeof(bool) || sizeof(isnan(x)) == sizeof(int))
|
if (sizeof(isnan(x)) == sizeof(bool) || sizeof(isnan(x)) == sizeof(int))
|
||||||
return isnan(x);
|
return isnan(x);
|
||||||
return _isnan(x);
|
return _isnan(x) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Portable version of signbit.
|
// Portable version of signbit.
|
||||||
|
Loading…
Reference in New Issue
Block a user