Skip to content

Commit

Permalink
Add missing arg_i++ to fix bug of s! in mrb_get_args.
Browse files Browse the repository at this point in the history
  • Loading branch information
take-cheeze committed Apr 21, 2017
1 parent 94bcdca commit 3ce42a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
if (i < argc && mrb_nil_p(ARGV[arg_i])) {
*ps = NULL;
*pl = 0;
i++;
i++; arg_i++;
break;
}
}
Expand Down

0 comments on commit 3ce42a0

Please sign in to comment.