Commit bf3f45fc authored by cubicdaiya's avatar cubicdaiya

Use mrb_int instead of int

parent 64805957
......@@ -6,7 +6,7 @@ static void
printstr(mrb_state *mrb, mrb_value obj)
{
char *s;
int len;
mrb_int len;
if (mrb_string_p(obj)) {
s = RSTRING_PTR(obj);
......
......@@ -713,7 +713,7 @@ retry:
str = mrb_obj_as_string(mrb, arg);
len = RSTRING_LEN(str);
if (RSTRING(result)->flags & MRB_STR_EMBED) {
int tmp_n = len;
mrb_int tmp_n = len;
RSTRING(result)->flags &= ~MRB_STR_EMBED_LEN_MASK;
RSTRING(result)->flags |= tmp_n << MRB_STR_EMBED_LEN_SHIFT;
} else {
......
......@@ -506,7 +506,7 @@ mrb_value
mrb_struct_init_copy(mrb_state *mrb, mrb_value copy)
{
mrb_value s;
int i, len;
mrb_int i, len;
mrb_get_args(mrb, "o", &s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment