Skip to content

Commit

Permalink
Fix CodeQL alert (#3945)
Browse files Browse the repository at this point in the history
  • Loading branch information
marlenecota authored Apr 30, 2024
1 parent cf1f55f commit 48c9084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 48c9084

Please sign in to comment.