dont use NULL macro

This commit is contained in:
IlyaShurupov 2024-03-23 12:16:44 +03:00
parent 9a9262f6d0
commit 4c66704830
16 changed files with 52 additions and 52 deletions

View file

@ -40,7 +40,7 @@ void ScopeStack::enterScope(bool aChildReachable) {
}
void ScopeStack::leaveScope() {
ASSERT(mIdx != NULL && "stack overflow");
ASSERT(mIdx != 0 && "stack overflow");
mBuff[mIdx - 1].~Scope();
mIdx--;
}