DIRECTOR: LINGO: Made assert statement meaningful

This commit is contained in:
Eugene Sandulenko 2019-12-02 09:57:04 +01:00
parent e260008117
commit 7c177b45b2

View File

@ -152,8 +152,7 @@ void Lingo::pushVoid() {
}
Datum Lingo::pop(void) {
if (_stack.size() == 0)
assert(0);
assert (_stack.size() != 0);
Datum ret = _stack.back();
_stack.pop_back();