Commit 5013c157 authored by Victor Zverovich's avatar Victor Zverovich

Silence MSVC 2017 constant if expression warning

parent cdfcee27
...@@ -99,7 +99,7 @@ class ArgConverter { ...@@ -99,7 +99,7 @@ class ArgConverter {
bool is_signed = type_ == 'd' || type_ == 'i'; bool is_signed = type_ == 'd' || type_ == 'i';
typedef typename std::conditional< typedef typename std::conditional<
std::is_same<T, void>::value, U, T>::type TargetType; std::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. // Extra casts are used to silence warnings.
if (is_signed) { if (is_signed) {
arg_ = internal::make_arg<Context>( arg_ = internal::make_arg<Context>(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment