kernel.c, binding.c: use MRB_SYM() instead of mrb_intern_lit().

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-01-30 20:18:46 +09:00
parent 92fb6d3526
commit 00f2b74ab2
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -589,7 +589,7 @@ mrb_obj_ceqq(mrb_state *mrb, mrb_value self)
else if (mrb_nil_p(self)) {
return mrb_false_value();
}
else if (!mrb_respond_to(mrb, self, mrb_intern_lit(mrb, "to_a"))) {
else if (!mrb_respond_to(mrb, self, MRB_SYM(to_a))) {
mrb_value c = mrb_funcall_argv(mrb, self, eqq, 1, &v);
if (mrb_test(c)) return mrb_true_value();
return mrb_false_value();