Skip to content

Commit a5b1db1

Browse files
committed
Fix a sign-compare warning.
1 parent 43e6a58 commit a5b1db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mpark/patterns/match.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ namespace mpark::patterns {
390390
auto insert(
391391
lib::list<lib::indexed_type<Q, std::index_sequence<Is...>>, Tail...>) {
392392
using Head = lib::indexed_type<Q, std::index_sequence<Is...>>;
393-
if constexpr (P == -1) {
393+
if constexpr (P == static_cast<std::size_t>(-1)) {
394394
return lib::
395395
list<Head, Tail..., lib::indexed_type<P, std::index_sequence<I>>>{};
396396
} else if constexpr (P == Q) {

0 commit comments

Comments
 (0)