Skip to content

Commit

Permalink
Fix a sign-compare warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpark committed Sep 15, 2017
1 parent 43e6a58 commit a5b1db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mpark/patterns/match.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ namespace mpark::patterns {
auto insert(
lib::list<lib::indexed_type<Q, std::index_sequence<Is...>>, Tail...>) {
using Head = lib::indexed_type<Q, std::index_sequence<Is...>>;
if constexpr (P == -1) {
if constexpr (P == static_cast<std::size_t>(-1)) {
return lib::
list<Head, Tail..., lib::indexed_type<P, std::index_sequence<I>>>{};
} else if constexpr (P == Q) {
Expand Down

0 comments on commit a5b1db1

Please sign in to comment.