Commit e157c63c authored by cubicdaiya's avatar cubicdaiya

use suitable type

parent 6e1e728c
......@@ -129,7 +129,7 @@ str_subseq(mrb_state *mrb, mrb_value str, mrb_int beg, mrb_int len)
for (i = 0; i < len && t<e; i++) {
t += utf8len(t);
}
return mrb_str_new(mrb, (const char*)p, (int)(t - p));
return mrb_str_new(mrb, (const char*)p, (size_t)(t - p));
}
static mrb_value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment