Skip to content

Commit

Permalink
Clear block arg when method_missing takes *args.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Feb 27, 2017
1 parent 9e93d5d commit d219e63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
mid = missing;
if (n == CALL_MAXARGS-1) {
regs[a+1] = mrb_ary_new_from_values(mrb, n, regs+a+1);
SET_NIL_VALUE(regs[bidx]);
n++;
}
if (n == CALL_MAXARGS) {
Expand Down

0 comments on commit d219e63

Please sign in to comment.