BAN: Fix bug of size of splice after slice()

I have no idea what was I doing before :D
This commit is contained in:
Bananymous 2023-10-24 17:23:45 +03:00
parent 6f6ccbfa04
commit fc8a000e46
1 changed files with 2 additions and 2 deletions

View File

@ -127,8 +127,8 @@ namespace BAN
ASSERT(start <= m_size);
if (length == ~size_type(0))
length = m_size - start;
ASSERT(start + length <= m_size);
return Span(m_data + start, m_size - start - length);
ASSERT(m_size - start >= length);
return Span(m_data + start, length);
}
}