mirror of
https://github.com/shadps4-emu/ext-fmt.git
synced 2024-11-24 18:29:41 +00:00
Silence MSVC 2017 constant if expression warning
This commit is contained in:
parent
cdfcee27fb
commit
5013c15737
@ -99,7 +99,7 @@ class ArgConverter {
|
||||
bool is_signed = type_ == 'd' || type_ == 'i';
|
||||
typedef typename std::conditional<
|
||||
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.
|
||||
if (is_signed) {
|
||||
arg_ = internal::make_arg<Context>(
|
||||
|
Loading…
Reference in New Issue
Block a user