Commit 3ce42a04 authored by take_cheeze's avatar take_cheeze

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

parent 94bcdca6
...@@ -696,7 +696,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...) ...@@ -696,7 +696,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
if (i < argc && mrb_nil_p(ARGV[arg_i])) { if (i < argc && mrb_nil_p(ARGV[arg_i])) {
*ps = NULL; *ps = NULL;
*pl = 0; *pl = 0;
i++; i++; arg_i++;
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment