Commit 18d8f9d1 authored by Jun Hiroe's avatar Jun Hiroe

Refactor sym_equal() in symbol.c

parent e2f7e485
......@@ -216,12 +216,10 @@ static mrb_value
sym_equal(mrb_state *mrb, mrb_value sym1)
{
mrb_value sym2;
mrb_bool equal_p;
mrb_get_args(mrb, "o", &sym2);
equal_p = mrb_obj_equal(mrb, sym1, sym2);
return mrb_bool_value(equal_p);
return mrb_bool_value(mrb_obj_equal(mrb, sym1, sym2));
}
/* 15.2.11.3.2 */
......
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