Skip to content

Commit

Permalink
Adjust to the optimum type
Browse files Browse the repository at this point in the history
  • Loading branch information
ksss committed May 5, 2017
1 parent 964a02f commit 8cba9a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -1954,10 +1954,11 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str)
int argc;
mrb_value spat = mrb_nil_value();
enum {awk, string, regexp} split_type = string;
long i = 0, lim_p;
mrb_int i = 0;
mrb_int beg;
mrb_int end;
mrb_int lim = 0;
mrb_bool lim_p;
mrb_value result, tmp;

argc = mrb_get_args(mrb, "|oi", &spat, &lim);
Expand Down

0 comments on commit 8cba9a9

Please sign in to comment.