view: avoid unsigned comparison warnings in split's assert
This commit is contained in:
parent
ab6840c7fc
commit
ddc24b076b
2
view.hpp
2
view.hpp
@ -300,7 +300,7 @@ namespace cruft {
|
|||||||
[[nodiscard]] constexpr auto
|
[[nodiscard]] constexpr auto
|
||||||
split (IndexT idx) const
|
split (IndexT idx) const
|
||||||
{
|
{
|
||||||
CHECK_LE (idx, size ());
|
CHECK_LE (cruft::cast::lossless<std::size_t> (idx), size ());
|
||||||
|
|
||||||
auto last = m_begin;
|
auto last = m_begin;
|
||||||
std::advance (last, idx);
|
std::advance (last, idx);
|
||||||
|
Loading…
Reference in New Issue
Block a user