From 3ce42a04e30f1ef5790cd5aaad40ba3c5e3a7893 Mon Sep 17 00:00:00 2001 From: take_cheeze Date: Fri, 21 Apr 2017 17:52:29 +0900 Subject: Add missing `arg_i++` to fix bug of `s!` in mrb_get_args. --- src/class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/class.c b/src/class.c index 8aa976c08..4349e7b49 100644 --- a/src/class.c +++ b/src/class.c @@ -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; } } -- cgit v1.2.3