Commit 610a52e6 authored by twanvl's avatar twanvl

fixed parser bug: I_RET was not always added

parent 4722cdb2
......@@ -449,7 +449,7 @@ void parseOper(TokenIterator& input, Script& script, Precedence minPrec, Instruc
Token next = input.peek(1);
if (next == TOK_RPAREN || next == TOK_EOF) {
// allow ; at end of expression without errors
return;
break;
}
script.addInstruction(I_POP); // discard result of first expression
parseOper(input, script, PREC_SET);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment