Commit 1324d4e2 authored by Masamitsu MURASE's avatar Masamitsu MURASE

Modify stack position of NODE_DEF and NODE_SDEF.

parent d3418a7a
...@@ -2125,6 +2125,7 @@ codegen(codegen_scope *s, node *tree, int val) ...@@ -2125,6 +2125,7 @@ codegen(codegen_scope *s, node *tree, int val)
genop(s, MKOP_AB(OP_METHOD, cursp(), sym)); genop(s, MKOP_AB(OP_METHOD, cursp(), sym));
if (val) { if (val) {
genop(s, MKOP_A(OP_LOADNIL, cursp())); genop(s, MKOP_A(OP_LOADNIL, cursp()));
push();
} }
} }
break; break;
...@@ -2144,6 +2145,7 @@ codegen(codegen_scope *s, node *tree, int val) ...@@ -2144,6 +2145,7 @@ codegen(codegen_scope *s, node *tree, int val)
genop(s, MKOP_AB(OP_METHOD, cursp(), sym)); genop(s, MKOP_AB(OP_METHOD, cursp(), sym));
if (val) { if (val) {
genop(s, MKOP_A(OP_LOADNIL, cursp())); genop(s, MKOP_A(OP_LOADNIL, cursp()));
push();
} }
} }
break; 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