diff options
| author | cubicdaiya <[email protected]> | 2014-03-27 03:18:20 +0900 |
|---|---|---|
| committer | cubicdaiya <[email protected]> | 2014-03-27 03:18:20 +0900 |
| commit | e157c63c1846f97a6e824c73d818d9bf2640e003 (patch) | |
| tree | 5a75ebe266af060bc8d413752bb59ebd7faa7340 /mrbgems/mruby-string-utf8/src | |
| parent | 6e1e728c51c9178a239fd9c44f0df5e612135e70 (diff) | |
| download | mruby-e157c63c1846f97a6e824c73d818d9bf2640e003.tar.gz mruby-e157c63c1846f97a6e824c73d818d9bf2640e003.zip | |
use suitable type
Diffstat (limited to 'mrbgems/mruby-string-utf8/src')
| -rw-r--r-- | mrbgems/mruby-string-utf8/src/string.c | 2 |
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 |
