Skip to content

Commit

Permalink
Use mrb_int instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicdaiya committed Mar 25, 2014
1 parent 650651e commit 6e648d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ mrb_str_modify(mrb_state *mrb, struct RString *s)
mrb_value
mrb_str_resize(mrb_state *mrb, mrb_value str, mrb_int len)
{
int slen;
mrb_int slen;
struct RString *s = mrb_str_ptr(str);

mrb_str_modify(mrb, s);
Expand Down Expand Up @@ -1085,7 +1085,7 @@ mrb_str_chop_bang(mrb_state *mrb, mrb_value str)

mrb_str_modify(mrb, s);
if (STR_LEN(s) > 0) {
int len;
mrb_int len;
len = STR_LEN(s) - 1;
if (STR_PTR(s)[len] == '\n') {
if (len > 0 &&
Expand Down Expand Up @@ -1705,7 +1705,7 @@ mrb_str_rindex_m(mrb_state *mrb, mrb_value str)
int argc;
mrb_value sub;
mrb_value vpos;
int pos, len = RSTRING_LEN(str);
mrb_int pos, len = RSTRING_LEN(str);

mrb_get_args(mrb, "*", &argv, &argc);
if (argc == 2) {
Expand Down Expand Up @@ -2096,7 +2096,7 @@ mrb_value
mrb_str_to_inum(mrb_state *mrb, mrb_value str, int base, mrb_bool badcheck)
{
char *s;
int len;
mrb_int len;

str = mrb_str_to_str(mrb, str);
if (badcheck) {
Expand Down Expand Up @@ -2228,7 +2228,7 @@ double
mrb_str_to_dbl(mrb_state *mrb, mrb_value str, mrb_bool badcheck)
{
char *s;
int len;
mrb_int len;

str = mrb_str_to_str(mrb, str);
s = RSTRING_PTR(str);
Expand Down

0 comments on commit 6e648d6

Please sign in to comment.