From 3d4af9cd65efce03e5ba41b1322b0413b1475913 Mon Sep 17 00:00:00 2001 From: vitaut Date: Tue, 17 Mar 2015 20:12:36 -0700 Subject: [PATCH] Use ``long double`` instead of ``int`` to avoid warnings --- format.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/format.h b/format.h index 5d9f5265..ca89432a 100644 --- a/format.h +++ b/format.h @@ -773,9 +773,11 @@ class IsConvertibleToInt { typedef char no[2]; static const T &get(); - static yes &check(fmt::ULongLong); - static no &check(...); + // Use ``long double`` instead of ``int`` to avoid warnings. + static yes &check(long double); + static no &check(...); + public: enum { value = (sizeof(check(get())) == sizeof(yes)) }; };