kernel.c (mrb_obj_ceqq): skip unnecessary mrb_ary_entry()

We have checked the boundary before the call.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-02-20 17:33:52 +09:00
parent 76157c5f78
commit d4cb136deb
+1 -1
View File
@@ -515,7 +515,7 @@ mrb_obj_ceqq(mrb_state *mrb, mrb_value self)
}
len = RARRAY_LEN(ary);
for (i=0; i<len; i++) {
mrb_value c = mrb_funcall_argv(mrb, mrb_ary_entry(ary, i), eqq, 1, &v);
mrb_value c = mrb_funcall_argv(mrb, RARRAY_PTR(ary)[i], eqq, 1, &v);
if (mrb_test(c)) return mrb_true_value();
}
return mrb_false_value();