Mark Parser2::empty as const

This commit is contained in:
2025-05-13 17:55:44 -04:00
parent c822d0ffaa
commit 36f8df4201

View File

@@ -599,7 +599,7 @@ private:
void *const data; void *const data;
Symbol stack[kMaxStackSize]; Symbol stack[kMaxStackSize];
Symbol *stackPtr = stack; Symbol *stackPtr = stack;
bool empty() { return stackPtr == stack; } bool empty() const { return stackPtr == stack; }
void pop() { void pop() {
assert(!empty()); assert(!empty());
--stackPtr; --stackPtr;