mirror of
https://github.com/fmtlib/fmt.git
synced 2025-02-21 03:41:05 +00:00
Apply coding conventions
This commit is contained in:
parent
de6ed8df8b
commit
707d7d923a
@ -1855,7 +1855,7 @@ template <typename Context> class basic_format_args {
|
||||
|
||||
FMT_CONSTEXPR auto type(int index) const -> detail::type {
|
||||
int shift = index * detail::packed_arg_bits;
|
||||
unsigned int mask = (1 << detail::packed_arg_bits) - 1;
|
||||
unsigned mask = (1 << detail::packed_arg_bits) - 1;
|
||||
return static_cast<detail::type>((desc_ >> shift) & mask);
|
||||
}
|
||||
|
||||
@ -1895,8 +1895,7 @@ template <typename Context> class basic_format_args {
|
||||
}
|
||||
if (static_cast<unsigned>(id) >= detail::max_packed_args) return arg;
|
||||
arg.type_ = type(id);
|
||||
if (arg.type_ == detail::type::none_type) return arg;
|
||||
arg.value_ = values_[id];
|
||||
if (arg.type_ != detail::type::none_type) arg.value_ = values_[id];
|
||||
return arg;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user