summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 2ac4359c8..425b79ca7 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2125,7 +2125,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str)
mrb_value spat = mrb_nil_value();
enum {awk, string, regexp} split_type = string;
long beg, end, i = 0;
- int lim = -1;
+ mrb_int lim = -1;
mrb_value result, tmp;
argc = mrb_get_args(mrb, "|oi", &spat, &lim);