summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2012-11-17 02:16:35 +0900
committerYukihiro Matz Matsumoto <[email protected]>2012-11-17 02:16:35 +0900
commit7cea9d7b945a4b00cef699f47c07654f8b7bd579 (patch)
treed22dbb5c1a8c9c5d84b337e8e9df64c4327dae35 /src/string.c
parentf3191b943ff59506a920b7e3bc54a3bfcb25b4d4 (diff)
downloadmruby-7cea9d7b945a4b00cef699f47c07654f8b7bd579.tar.gz
mruby-7cea9d7b945a4b00cef699f47c07654f8b7bd579.zip
int and mrb_int should not be mixed under -DMRB_INT64; may fix #557
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);