Add missing arg_i++ to fix bug of s! in mrb_get_args.

This commit is contained in:
take_cheeze
2017-04-21 17:52:29 +09:00
parent 94bcdca64f
commit 3ce42a04e3
+1 -1
View File
@@ -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;
}
}