Commit 66420545 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #899 from masamitsu-murase/modify_stack_position_of_method

Modify stack position of NODE_DEF and NODE_SDEF.
parents d7904418 1324d4e2
......@@ -2132,6 +2132,7 @@ codegen(codegen_scope *s, node *tree, int val)
genop(s, MKOP_AB(OP_METHOD, cursp(), sym));
if (val) {
genop(s, MKOP_A(OP_LOADNIL, cursp()));
push();
}
}
break;
......@@ -2151,6 +2152,7 @@ codegen(codegen_scope *s, node *tree, int val)
genop(s, MKOP_AB(OP_METHOD, cursp(), sym));
if (val) {
genop(s, MKOP_A(OP_LOADNIL, cursp()));
push();
}
}
break;
......
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