BAN: Update ASSERT api

its now much harder to mix < with <= and > with >=
This commit is contained in:
2023-11-02 00:01:12 +02:00
parent 71ecdd7245
commit ca34ece8ef
3 changed files with 12 additions and 12 deletions

View File

@@ -189,9 +189,9 @@ namespace Kernel
return;
// Verify no overflow
ASSERT_LE(bytes, size());
ASSERT_LE(offset, size());
ASSERT_LE(offset, size() - bytes);
ASSERT_LTE(bytes, size());
ASSERT_LTE(offset, size());
ASSERT_LTE(offset, size() - bytes);
if (m_kmalloc || &PageTable::current() == &m_page_table)
{