mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-04 17:26:42 +00:00
Fix CodeQL alert (#3945)
This commit is contained in:
parent
cf1f55f798
commit
48c908453d
@ -1899,7 +1899,7 @@ template <typename Context> class basic_format_args {
|
||||
if (id < max_size()) arg = args_[id];
|
||||
return arg;
|
||||
}
|
||||
if (id >= detail::max_packed_args) return arg;
|
||||
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];
|
||||
|
Loading…
Reference in New Issue
Block a user