mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-27 15:35:18 +00:00
Make return type of basic_format_args::max_size() consistent.
This squashes nasty narrowing conversion warnings.
This commit is contained in:
parent
29352af369
commit
e7e2ab1070
@ -1279,9 +1279,10 @@ class basic_format_args {
|
|||||||
return arg;
|
return arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned max_size() const {
|
size_type max_size() const {
|
||||||
unsigned long long max_packed = internal::max_packed_args;
|
unsigned long long max_packed = internal::max_packed_args;
|
||||||
return is_packed() ? max_packed : types_ & ~internal::is_unpacked_bit;
|
return static_cast<size_type>(
|
||||||
|
is_packed() ? max_packed : types_ & ~internal::is_unpacked_bit);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user