diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-27 11:29:59 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-27 11:29:59 +0900 |
| commit | 292abdb609386b56cfa75fb0a48e0d564bdc9443 (patch) | |
| tree | 428bc6dc71064d6ff384267fa4ea76ba094b0f9a | |
| parent | a4f4db975ad7008384e13be4a14084658ad533f8 (diff) | |
| parent | e157c63c1846f97a6e824c73d818d9bf2640e003 (diff) | |
| download | mruby-292abdb609386b56cfa75fb0a48e0d564bdc9443.tar.gz mruby-292abdb609386b56cfa75fb0a48e0d564bdc9443.zip | |
Merge pull request #1956 from cubicdaiya/issues/suitable_type5
Use size_t instead of int
| -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 |
