mruby-array-ext: combine variable declaration with initialization

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-10-23 15:28:25 +09:00
parent 8c4bf04856
commit b135601e6a
+1 -3
View File
@@ -864,9 +864,7 @@ ary_fill_parse_arg(mrb_state *mrb, mrb_value self)
{
mrb_value arg0 = mrb_nil_value(), arg1 = mrb_nil_value(), arg2 = mrb_nil_value();
mrb_value block = mrb_nil_value();
mrb_int argc;
argc = mrb_get_args(mrb, "|ooo&", &arg0, &arg1, &arg2, &block);
mrb_int argc = mrb_get_args(mrb, "|ooo&", &arg0, &arg1, &arg2, &block);
struct RArray *ary = mrb_ary_ptr(self);
mrb_int ary_len = ARY_LEN(ary);