diff --git a/format.h b/format.h index c3c7cf46..30ad3658 100644 --- a/format.h +++ b/format.h @@ -261,7 +261,7 @@ class numeric_limits : 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.