Skip to content

Commit

Permalink
Silenced MSVC 2017 constant if expression warning
Browse files Browse the repository at this point in the history
  • Loading branch information
virgiliofornazin authored and vitaut committed Nov 5, 2017
1 parent 7a9c1ba commit 42e88c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmt/printf.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class ArgConverter : public ArgVisitor<ArgConverter<T>, void> {
using internal::Arg;
typedef typename internal::Conditional<
is_same<T, void>::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;
Expand Down

0 comments on commit 42e88c4

Please sign in to comment.