From f60c4b994765f20a60b3038d9c52823eeb07c297 Mon Sep 17 00:00:00 2001 From: vitaut Date: Wed, 25 Nov 2015 07:17:05 -0800 Subject: [PATCH] Fix an MSVC warning (#234) --- format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.