Fix post_* opcodes generation
This commit is contained in:
1 parent
34a5e00b7f
commit
f17ca4c455
2 files changed
+8
-2
No files matched your search
@@ -1475,11 +1475,17 @@ parse_postfix_expression (void)
|
|||||||
skip_token ();
|
skip_token ();
|
||||||
if (token_is (TOK_DOUBLE_PLUS))
|
if (token_is (TOK_DOUBLE_PLUS))
|
||||||
{
|
{
|
||||||
DUMP_OPCODE_2 (post_incr, next_temp_name (), STACK_HEAD (IDX, 1));
|
STACK_PUSH (IDX, next_temp_name ());
|
||||||
|
DUMP_OPCODE_2 (post_incr, STACK_HEAD (IDX, 1), STACK_HEAD (IDX, 2));
|
||||||
|
STACK_HEAD (IDX, 2) = STACK_HEAD (IDX, 1);
|
||||||
|
STACK_DROP (IDX, 1);
|
||||||
}
|
}
|
||||||
else if (token_is (TOK_DOUBLE_MINUS))
|
else if (token_is (TOK_DOUBLE_MINUS))
|
||||||
{
|
{
|
||||||
DUMP_OPCODE_2 (post_decr, next_temp_name (), STACK_HEAD (IDX, 1));
|
STACK_PUSH (IDX, next_temp_name ());
|
||||||
|
DUMP_OPCODE_2 (post_decr, STACK_HEAD (IDX, 1), STACK_HEAD (IDX, 2));
|
||||||
|
STACK_HEAD (IDX, 2) = STACK_HEAD (IDX, 1);
|
||||||
|
STACK_DROP (IDX, 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
File renamed without changes.
Reference in new issue
Block a user