Skip to content
Permalink
Browse files
Add missing arg_i++ to fix bug of s! in mrb_get_args.
  • Loading branch information
take-cheeze committed Apr 21, 2017
1 parent 94bcdca commit 3ce42a04e30f1ef5790cd5aaad40ba3c5e3a7893
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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;
}
}

0 comments on commit 3ce42a0

Please sign in to comment.