Commit 932efe53 authored by Jun Hiroe's avatar Jun Hiroe

Refactor mrb_str_intern() in string.c

parent 944b3950
...@@ -1484,11 +1484,7 @@ mrb_str_init(mrb_state *mrb, mrb_value self) ...@@ -1484,11 +1484,7 @@ mrb_str_init(mrb_state *mrb, mrb_value self)
mrb_value mrb_value
mrb_str_intern(mrb_state *mrb, mrb_value self) mrb_str_intern(mrb_state *mrb, mrb_value self)
{ {
mrb_sym id; return mrb_symbol_value(mrb_intern_str(mrb, self));
id = mrb_intern_str(mrb, self);
return mrb_symbol_value(id);
} }
/* ---------------------------------- */ /* ---------------------------------- */
mrb_value mrb_value
......
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