fixing c standard lib includes

This commit is contained in:
Noel
2022-10-22 23:18:34 -07:00
parent a5f9701ce6
commit 30d7f2ee66
6 changed files with 7 additions and 3 deletions

View File

@ -17,13 +17,13 @@ namespace Blah
char& operator[](int index)
{
BLAH_ASSERT(index >= 0 && index < length(), "Index out of range");
BLAH_ASSERT(index >= 0 && index < length() + 1, "Index out of range");
return s_ptr()[index];
}
const char& operator[](int index) const
{
BLAH_ASSERT(index >= 0 && index < length(), "Index out of range");
BLAH_ASSERT(index >= 0 && index < length() + 1, "Index out of range");
return s_ptr()[index];
}