Fix stack operations in parser

This commit is contained in:
Ilmir Usmanov
2014-10-02 15:04:00 +04:00
parent c8b97214fe
commit eff5e1a80b
+1 -1
View File
@@ -1828,6 +1828,7 @@ parse_conditional_expression (void)
REWRITE_JMP (STACK_TOP (U16), jmp_down, OPCODE_COUNTER () - STACK_TOP (U16)); REWRITE_JMP (STACK_TOP (U16), jmp_down, OPCODE_COUNTER () - STACK_TOP (U16));
STACK_DROP (U8, 1); STACK_DROP (U8, 1);
STACK_DROP (U16, 1);
STACK_PUSH (U8, 1); STACK_PUSH (U8, 1);
STACK_DROP (IDX, 1); STACK_DROP (IDX, 1);
STACK_SWAP (IDX); STACK_SWAP (IDX);
@@ -1861,7 +1862,6 @@ parse_assignment_expression (void)
parse_conditional_expression (); parse_conditional_expression ();
if (STACK_TOP (U8)) if (STACK_TOP (U8))
{ {
STACK_DROP (U8, 1);
goto cleanup; goto cleanup;
} }