From 7cea9d7b945a4b00cef699f47c07654f8b7bd579 Mon Sep 17 00:00:00 2001 From: Yukihiro Matz Matsumoto Date: Sat, 17 Nov 2012 02:16:35 +0900 Subject: int and mrb_int should not be mixed under -DMRB_INT64; may fix #557 --- src/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/string.c') 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); -- cgit v1.2.3