Remove one of the lines that did the same thing; fix #3836

The change is suggested by `ukrainskiysergey` in #3836.
I deleted the other line for clarity. I also updated comment lines.
parent 6316e0c7
...@@ -2750,7 +2750,7 @@ RETRY_TRY_BLOCK: ...@@ -2750,7 +2750,7 @@ RETRY_TRY_BLOCK:
MRB_PROC_SET_TARGET_CLASS(p, mrb_class_ptr(recv)); MRB_PROC_SET_TARGET_CLASS(p, mrb_class_ptr(recv));
p->flags |= MRB_PROC_SCOPE; p->flags |= MRB_PROC_SCOPE;
/* prepare stack */ /* prepare call stack */
ci = cipush(mrb); ci = cipush(mrb);
ci->pc = pc + 1; ci->pc = pc + 1;
ci->acc = a; ci->acc = a;
...@@ -2762,8 +2762,7 @@ RETRY_TRY_BLOCK: ...@@ -2762,8 +2762,7 @@ RETRY_TRY_BLOCK:
/* prepare stack */ /* prepare stack */
mrb->c->stack += a; mrb->c->stack += a;
/* setup closure */ /* setup block to call */
MRB_PROC_SET_TARGET_CLASS(p, ci->target_class);
ci->proc = p; ci->proc = p;
irep = p->body.irep; irep = p->body.irep;
......
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