From 42e88c4fcb5d7b696376797b79e070732aca85c9 Mon Sep 17 00:00:00 2001 From: virgiliofornazin Date: Sun, 5 Nov 2017 17:57:58 -0200 Subject: [PATCH] Silenced MSVC 2017 constant if expression warning --- fmt/printf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/printf.h b/fmt/printf.h index db91022c..46205a78 100644 --- a/fmt/printf.h +++ b/fmt/printf.h @@ -125,7 +125,7 @@ class ArgConverter : public ArgVisitor, void> { using internal::Arg; typedef typename internal::Conditional< is_same::value, U, T>::type TargetType; - if (sizeof(TargetType) <= sizeof(int)) { + if (const_check(sizeof(TargetType) <= sizeof(int))) { // Extra casts are used to silence warnings. if (is_signed) { arg_.type = Arg::INT;