mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use mrb_int instead of int
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user