diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-12-27 20:12:09 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-12-27 20:12:09 +0900 |
| commit | baa0ee4133f44eb6c0339a3f8ea238baa0360ced (patch) | |
| tree | 3763cf0ef7f5e96e6ab3780d9d5d09f16c06c717 /src/string.c | |
| parent | ef3bbd2e647c92b5a96c04c78a71c9bb41bea679 (diff) | |
| parent | 093560e7d1d22f7814903a30d10b781b4d3130c0 (diff) | |
| download | mruby-baa0ee4133f44eb6c0339a3f8ea238baa0360ced.tar.gz mruby-baa0ee4133f44eb6c0339a3f8ea238baa0360ced.zip | |
Merge pull request #2686 from cubicdaiya/use-suitable-type
Use suitable type.
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.c b/src/string.c index c602be926..7234fd821 100644 --- a/src/string.c +++ b/src/string.c @@ -1310,7 +1310,7 @@ mrb_str_index_m(mrb_state *mrb, mrb_value str) switch (mrb_type(sub)) { case MRB_TT_FIXNUM: { - int c = mrb_fixnum(sub); + mrb_int c = mrb_fixnum(sub); mrb_int len = RSTRING_LEN(str); unsigned char *p = (unsigned char*)RSTRING_PTR(str); @@ -1656,7 +1656,7 @@ mrb_str_rindex_m(mrb_state *mrb, mrb_value str) switch (mrb_type(sub)) { case MRB_TT_FIXNUM: { - int c = mrb_fixnum(sub); + mrb_int c = mrb_fixnum(sub); unsigned char *p = (unsigned char*)RSTRING_PTR(str); for (pos=len-1;pos>=0;pos--) { |
