Commit 23b6e22c authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2490 from suzukaze/refactor_symbol

Refactor sym_equal() in symbol.c
parents e2f7e485 18d8f9d1
......@@ -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