summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcubicdaiya <[email protected]>2014-03-27 03:18:20 +0900
committercubicdaiya <[email protected]>2014-03-27 03:18:20 +0900
commite157c63c1846f97a6e824c73d818d9bf2640e003 (patch)
tree5a75ebe266af060bc8d413752bb59ebd7faa7340
parent6e1e728c51c9178a239fd9c44f0df5e612135e70 (diff)
downloadmruby-e157c63c1846f97a6e824c73d818d9bf2640e003.tar.gz
mruby-e157c63c1846f97a6e824c73d818d9bf2640e003.zip
use suitable type
-rw-r--r--mrbgems/mruby-string-utf8/src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-string-utf8/src/string.c b/mrbgems/mruby-string-utf8/src/string.c
index cd41afc66..da348f4fb 100644
--- a/mrbgems/mruby-string-utf8/src/string.c
+++ b/mrbgems/mruby-string-utf8/src/string.c
@@ -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