Skip to content

Commit

Permalink
Simplify expression; ref #3490
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Mar 10, 2017
1 parent e8f09f9 commit 2f299cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
int a = GETARG_A(i);
int n = GETARG_C(i);

if (mid == 0 || !mrb->c->ci->target_class) {
if (mid == 0 || !ci->target_class) {
mrb_value exc;

exc = mrb_exc_new_str_lit(mrb, E_NOMETHOD_ERROR, "super called outside of method");
Expand Down

0 comments on commit 2f299cf

Please sign in to comment.