Fix an MSVC warning (#234)

This commit is contained in:
vitaut 2015-11-25 07:17:05 -08:00
parent 0519737b95
commit f60c4b9947

View File

@ -261,7 +261,7 @@ class numeric_limits<fmt::internal::DummyInt> :
using namespace fmt::internal;
if (sizeof(isnan(x)) == sizeof(bool) || sizeof(isnan(x)) == sizeof(int))
return isnan(x);
return _isnan(x);
return _isnan(x) != 0;
}
// Portable version of signbit.