From 3810d7e4d4e1233d5596c1cd211fea5e5316fea2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 4 Feb 2018 09:29:50 -0800 Subject: [PATCH] Workaround a bug in MSVC --- include/fmt/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 1dd6944b..31438010 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -523,11 +523,11 @@ FMT_MAKE_VALUE(UINT, unsigned, unsigned) // either to int or to long long depending on its size. using long_type = std::conditional::type; -FMT_MAKE_VALUE(sizeof(long) == sizeof(int) ? INT : LONG_LONG, long, long_type); +FMT_MAKE_VALUE((sizeof(long) == sizeof(int) ? INT : LONG_LONG), long, long_type) using ulong_type = std::conditional::type; -FMT_MAKE_VALUE(sizeof(unsigned long) == sizeof(unsigned) ? UINT : ULONG_LONG, +FMT_MAKE_VALUE((sizeof(unsigned long) == sizeof(unsigned) ? UINT : ULONG_LONG), unsigned long, ulong_type) FMT_MAKE_VALUE(LONG_LONG, long long, long long)