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)
genop(s, MKOP_AB(OP_METHOD, cursp(), sym));
if (val) {
genop(s, MKOP_A(OP_LOADNIL, cursp()));
push();
}
}
break;
......@@ -2144,6 +2145,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