diff --git a/BAN/include/BAN/Span.h b/BAN/include/BAN/Span.h index ff3e6332c3..a04c22a31b 100644 --- a/BAN/include/BAN/Span.h +++ b/BAN/include/BAN/Span.h @@ -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); } } \ No newline at end of file