This commit is contained in:
virgiliofornazin 2017-11-05 01:12:52 +00:00 committed by GitHub
commit b4fe4a68d5

View File

@ -125,7 +125,14 @@ class ArgConverter : public ArgVisitor<ArgConverter<T>, void> {
using internal::Arg;
typedef typename internal::Conditional<
is_same<T, void>::value, U, T>::type TargetType;
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable: 4127)
#endif
if (sizeof(TargetType) <= sizeof(int)) {
#if defined(_MSC_VER)
#pragma warning(pop)
#endif
// Extra casts are used to silence warnings.
if (is_signed) {
arg_.type = Arg::INT;