Silenced MSVC 2017 constant if expression warning

This commit is contained in:
virgiliofornazin 2017-11-05 17:57:58 -02:00 committed by Victor Zverovich
parent 7a9c1ba190
commit 42e88c4fcb

View File

@ -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;