reorder mrb_ary_new_from_values() args to (argc, argv)

This commit is contained in:
Yukihiro Matsumoto
2012-06-01 02:18:30 +09:00
parent 62f4270571
commit f56abcbb5a
4 changed files with 19 additions and 12 deletions
+1 -1
View File
@@ -2111,7 +2111,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str)
else if (lim == 1) {
if (RSTRING_LEN(str) == 0)
return mrb_ary_new_capa(mrb, 0);
return mrb_ary_new_from_values(mrb, &str, 1);
return mrb_ary_new_from_values(mrb, 1, &str);
}
i = 1;
}