From 1b45e034ba95b00981e626935ec46488c0cfadb0 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 28 Oct 2017 23:35:01 +0900 Subject: 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. --- src/vm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/vm.c b/src/vm.c index b9cd86b67..d4940561b 100644 --- a/src/vm.c +++ b/src/vm.c @@ -2750,7 +2750,7 @@ RETRY_TRY_BLOCK: MRB_PROC_SET_TARGET_CLASS(p, mrb_class_ptr(recv)); p->flags |= MRB_PROC_SCOPE; - /* prepare stack */ + /* prepare call stack */ ci = cipush(mrb); ci->pc = pc + 1; ci->acc = a; @@ -2762,8 +2762,7 @@ RETRY_TRY_BLOCK: /* prepare stack */ mrb->c->stack += a; - /* setup closure */ - MRB_PROC_SET_TARGET_CLASS(p, ci->target_class); + /* setup block to call */ ci->proc = p; irep = p->body.irep; -- cgit v1.2.3