mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
kernel.c (mrb_obj_ceqq): skip unnecessary mrb_ary_entry()
We have checked the boundary before the call.
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user