Use mrb_int instead of int

This commit is contained in:
cubicdaiya
2014-03-25 21:17:13 +09:00
parent 648059575d
commit bf3f45fc70
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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);