Skip to content

Commit

Permalink
Configure callinfo target_class as CRuby; ref #3429
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Feb 16, 2017
1 parent 4dae285 commit 73e5a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrbgems/mruby-eval/src/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ create_proc_from_string(mrb_state *mrb, char *s, int len, mrb_value binding, con
e->cioff = c->ci - c->cibase - 1;
e->stack = c->ci->stackent;
MRB_SET_ENV_STACK_LEN(e, c->ci[-1].proc->body.irep->nlocals);
c->ci->target_class = mrb->object_class;
c->ci->target_class = proc->target_class;
c->ci->env = 0;
proc->env = e;
patch_irep(mrb, proc->body.irep, 0);
Expand Down

0 comments on commit 73e5a19

Please sign in to comment.