update main #1

Merged
Sinipelto merged 240 commits from Bananymous/banan-os:main into main 2023-11-20 13:20:51 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 988a4e1cd8 - Show all commits

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);
}
}