Replace mrb_intern() with mrb_intern2() or mrb_intern_cstr().

This commit is contained in:
Jun Hiroe
2013-07-14 00:39:21 +09:00
parent 5b3d531d79
commit 3cf1a9beae
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ main(int argc, char **argv)
}
else {
/* no */
if (!mrb_respond_to(mrb,result,mrb_intern(mrb,"inspect"))){
if (!mrb_respond_to(mrb, result, mrb_intern2(mrb, "inspect", 7))){
result = mrb_any_to_s(mrb,result);
}
p(mrb, result, 1);
+1 -1
View File
@@ -43,7 +43,7 @@ struct_ivar_get(mrb_state *mrb, mrb_value c, mrb_sym id)
mrb_value
mrb_struct_iv_get(mrb_state *mrb, mrb_value c, const char *name)
{
return struct_ivar_get(mrb, c, mrb_intern(mrb, name));
return struct_ivar_get(mrb, c, mrb_intern_cstr(mrb, name));
}
mrb_value