Skip to content

Commit

Permalink
Fix CodeQL alert (fmtlib#3945)
Browse files Browse the repository at this point in the history
  • Loading branch information
marlenecota authored and Arghnews committed May 1, 2024
1 parent a97a560 commit 59f7d3c
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 59f7d3c

Please sign in to comment.